f4c493d845d836bdd53cc37887d6deb48343b748,deepchem/transformers/tests/test_transformers.py,TestTransformerAPI,test_y_log_transformer,#TestTransformerAPI#,24
Before Change
solubility_dataset = self.load_solubility_data()
log_transformer = LogTransformer(
transform_y=True, dataset=solubility_dataset)
X, y, w, ids = solubility_dataset.to_numpy()
log_transformer.transform(solubility_dataset)
X_t, y_t, w_t, ids_t = solubility_dataset.to_numpy()
// Check ids are unchanged.
for id_elt, id_t_elt in zip(ids, ids_t):
assert id_elt == id_t_elt
After Change
solubility_dataset = self.load_solubility_data()
log_transformer = LogTransformer(
transform_y=True, dataset=solubility_dataset)
X, y, w, ids = (solubility_dataset.X, solubility_dataset.y, solubility_dataset.w, solubility_dataset.ids)
log_transformer.transform(solubility_dataset)
X_t, y_t, w_t, ids_t = (solubility_dataset.X, solubility_dataset.y, solubility_dataset.w, solubility_dataset.ids)
// Check ids are unchanged.
for id_elt, id_t_elt in zip(ids, ids_t):
assert id_elt == id_t_elt
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 12
Instances
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_y_log_transformer
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_y_log_transformer_select
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_X_log_transformer_select
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_y_normalization_transformer
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_y_log_transformer
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_singletask_balancing_transformer
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_X_normalization_transformer
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_X_log_transformer
Project Name: deepchem/deepchem
Commit Name: f4c493d845d836bdd53cc37887d6deb48343b748
Time: 2016-10-03
Author: peter.eastman@gmail.com
File Name: deepchem/transformers/tests/test_transformers.py
Class Name: TestTransformerAPI
Method Name: test_multitask_balancing_transformer