6a50c0eeb5a8d12de5cda1344971cf4df9fe5cf7,examples/toxcast/toxcast_rf.py,,,#,78
Before Change
model.fit(train_dataset)
model.save()
train_evaluator = Evaluator(model, train_dataset, transformers, verbosity=verbosity)
train_scores = train_evaluator.compute_model_performance([classification_metric])
print("Train scores")
print(train_scores)
valid_evaluator = Evaluator(model, valid_dataset, transformers, verbosity=verbosity)
valid_scores = valid_evaluator.compute_model_performance([classification_metric])
print("Validation scores")
print(valid_scores)
After Change
class_weight="balanced", n_estimators=500, n_jobs=-1)
return dc.models.SklearnModel(sklearn_model, model_dir)
model = SingletaskToMultitask(toxcast_tasks, model_builder)
// Fit trained model
model.fit(train_dataset)
model.save()
print("About to evaluate model")
train_scores = model.evaluate(train_dataset, [metric], transformers)
valid_scores = model.evaluate(valid_dataset, [metric], transformers)
print("Train scores")
print(train_scores)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 39
Instances
Project Name: deepchem/deepchem
Commit Name: 6a50c0eeb5a8d12de5cda1344971cf4df9fe5cf7
Time: 2016-12-13
Author: bharath.ramsundar@gmail.com
File Name: examples/toxcast/toxcast_rf.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: 17f082bb9ad548e94357df6c19083bc75d640821
Time: 2016-11-08
Author: bharath.ramsundar@gmail.com
File Name: examples/sider/sider_rf.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: 1a0a14ac9ca854a013083c7430221167283329e7
Time: 2016-11-02
Author: bharath.ramsundar@gmail.com
File Name: examples/tox21/tox21_sklearn_models.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: d2aa9a97309fb59229f200378d8dd9a9ce7eecca
Time: 2016-11-03
Author: bharath.ramsundar@gmail.com
File Name: examples/muv/muv_sklearn.py
Class Name:
Method Name: