8616f858c3756667e3184bd9ccc2b9d17b28cb30,deepchem/trans/transformers.py,MinMaxTransformer,untransform,#MinMaxTransformer#Any#,139

Before Change


    Undo transformation on provided data.
    
    if self.transform_X:
      raise NotImplementedError("MinMax does not work for X yet.")
    if self.transform_y:
      y_min = self.y_min
      y_max = self.y_max

After Change


      for dim in z_shape:
        if dim != n_tasks and dim == 1:
          y_min = np.expand_dims(y_min, -1)
          y_max = np.expand_dims(y_max, -1)

      y = z * (y_max - y_min) + y_min
      return y
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: 8616f858c3756667e3184bd9ccc2b9d17b28cb30
Time: 2019-07-14
Author: vsomnath@student.ethz.ch
File Name: deepchem/trans/transformers.py
Class Name: MinMaxTransformer
Method Name: untransform


Project Name: mil-tokyo/webdnn
Commit Name: b1af974253beae38e06425012279a7e5f74951b1
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/array.py
Class Name:
Method Name: _convert_tile


Project Name: mil-tokyo/webdnn
Commit Name: 2637ccdf310c2fae51f11213a63401b9c2167fd1
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/array.py
Class Name:
Method Name: _convert_expand_dims