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
z: np.ndarray,
Transformed X or y array
if self.transform_X:
X_max = self.X_max
X_min = self.X_min
return z * (X_max - X_min) + X_min
elif self.transform_y:
y_min = self.y_min
y_max = self.y_max
n_tasks = len(y_min)
z_shape = list(z.shape)
z_shape.reverse()
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
class NormalizationTransformer(Transformer):
def __init__(self,
transform_X=False,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
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: comic/grand-challenge.org
Commit Name: 34fb7ae750095c01926f7af255da89ebf741cb61
Time: 2020-11-30
Author: HarmvZ@users.noreply.github.com
File Name: app/grandchallenge/algorithms/tasks.py
Class Name:
Method Name: send_failed_jobs_email
Project Name: home-assistant/home-assistant
Commit Name: e33451e2b94e021e21231417807c1f0f10358c70
Time: 2017-11-13
Author: ziotibia1@libero.it
File Name: homeassistant/components/sensor/modbus.py
Class Name: ModbusRegisterSensor
Method Name: update
Project Name: pfnet/optuna
Commit Name: 48b5740ff78e884bee057f3f625cad14e330608c
Time: 2019-11-01
Author: toshihiko.yanase@gmail.com
File Name: optuna/visualization.py
Class Name:
Method Name: _generate_contour_subplot