Unverified Commit ce6438fa authored by alat-rights's avatar alat-rights Committed by GitHub
Browse files

Added deprecation warning

Added deprecation warning to untransform_grad method of NormalizationTransformer class. Related to issue #1978
parent 651df9f9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -587,9 +587,10 @@ class NormalizationTransformer(Transformer):
        return z * y_stds

  def untransform_grad(self, grad, tasks):
    """
    Undo transformation on gradient.
    """
    """DEPRECATED. DO NOT USE."""
    logger.warning(
      "NormalizationTransformer.untransform_grad is DEPRECATED and will be removed in a future version of DeepChem. Manually implement transforms to perform force calculations."
    )
    if self.transform_y:

      grad_means = self.y_means[1:]