Created
May 5, 2019 15:33
-
-
Save chao1224/e1248c07677c70a007338022d1ce1d45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import deepchem as dc | |
datasets = ['muv'] | |
models = ['weave'] | |
metrics = [dc.metrics.Metric(dc.metrics.roc_auc_score, np.mean),dc.metrics.Metric(dc.metrics.prc_auc_score, np.mean)] | |
for model in models: | |
print("RUNNING:",model) | |
dc.molnet.run_benchmark(datasets,model,test=True,metric=metrics) | |
datasets = ['qm9'] | |
models = ['graphconvreg'] | |
metrics = [ | |
dc.metrics.Metric(dc.metrics.rms_score, np.mean), | |
dc.metrics.Metric(dc.metrics.mean_squared_error, np.mean), | |
dc.metrics.Metric(dc.metrics.mean_absolute_error, np.mean), | |
dc.metrics.Metric(dc.metrics.pearson_r2_score, np.mean), | |
dc.metrics.Metric(dc.metrics.r2_score, np.mean) | |
] | |
for model in models: | |
print("RUNNING:",model) | |
dc.molnet.run_benchmark(datasets,model,test=True,metric=metrics) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MUV
gcnn
weave