c5f9a908910ab118c465de659a8a90c9d64aa708,deepchem/trans/transformers.py,PowerTransformer,transform,#PowerTransformer#Any#,592
Before Change
// TODO (rbharath): Find a more elegant solution to saving the data?
shutil.rmtree(dataset.data_dir)
os.makedirs(dataset.data_dir)
DiskDataset.from_numpy(X_t, y_t, w_t, ids_t, data_dir=dataset.data_dir)
return dataset
After Change
DiskDataset.from_numpy(dataset.data_dir, X_t, y_t, w_t, ids_t)
return dataset
return NumpyDataset(X_t, y_t, w_t, ids_t)
def untransform(self, z):
// print("Cannot undo Power Transformer, for now.")
n_powers = len(self.powers)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: deepchem/deepchem
Commit Name: c5f9a908910ab118c465de659a8a90c9d64aa708
Time: 2016-11-14
Author: flee2@stanford.edu
File Name: deepchem/trans/transformers.py
Class Name: PowerTransformer
Method Name: transform
Project Name: awslabs/mxboard
Commit Name: 409da8669036e4697fabe131976f0b4825258d48
Time: 2018-04-05
Author: wujun.nju@gmail.com
File Name: tests/python/unittest/test_logging.py
Class Name:
Method Name: remove_logdir
Project Name: deepchem/deepchem
Commit Name: 3e611c521c3adbecc946fdbc78408b936d09234d
Time: 2016-10-28
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/__init__.py
Class Name: CDFTransformer
Method Name: transform