Skip to content

Commit

Permalink
Merge pull request #22 from mufeili/delaney
Browse files Browse the repository at this point in the history
Two Submissions on Delaney
  • Loading branch information
Bharath Ramsundar authored Jan 29, 2021
2 parents edfde30 + dd31878 commit fe94164
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 5 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# MoleculeNet Leaderboard

## Physical Chemistry

### Delaney (ESOL)

| Rank | Model | Featurization | Test RMSE | Validation RMSE | Contact | References | Date |
| ---- | ------------- | -------------- | ---------------- | ---------------- | --------------------------------- | ---------------------------------------------------------------------------------------- | -------------- |
| 1 | GCN | GraphConv | 0.8851 +- 0.0292 | 0.9405 +- 0.0310 | [Mufei Li]([email protected]) | [Paper](https://arxiv.org/abs/1609.02907), [Code](./examples) | Jan 28th, 2020 |
| 2 | Random Forest | 1024-bit ECFP4 | 1.7406 +- 0.0261 | 1.7932 +- 0.0153 | [Mufei Li]([email protected]) | [Paper](https://www.stat.berkeley.edu/~breiman/randomforest2001.pdf), [Code](./examples) | Jan 28th, 2020 |

## Biophysics

### BACE Classification
Expand Down
8 changes: 8 additions & 0 deletions examples/configures/GCN_GC/Delaney.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"batchnorm": false,
"dropout": 0.01913243832609146,
"hidden_feats": 64,
"lr": 0.16034207807172668,
"num_gnn_layers": 2,
"residual": true
}
6 changes: 6 additions & 0 deletions examples/configures/RF_ECFP/Delaney.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bootstrap": true,
"criterion": "mae",
"min_samples_split": 16,
"n_estimators": 30
}
4 changes: 2 additions & 2 deletions examples/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def rf_model_builder(model_dir, hyperparams, mode):
def load_model(args, tasks, hyperparams):
if args['dataset'] in ['BACE_classification', 'BBBP', 'ClinTox']:
mode = 'classification'
elif args['dataset'] in ['BACE_regression']:
elif args['dataset'] in ['BACE_regression', 'Delaney']:
mode = 'regression'
else:
raise ValueError('Unexpected dataset: {}'.format(args['dataset']))
Expand Down Expand Up @@ -154,7 +154,7 @@ def objective(hyperparams):
parser.add_argument(
'-d',
'--dataset',
choices=['BACE_classification', 'BACE_regression', 'BBBP', 'ClinTox'],
choices=['BACE_classification', 'BACE_regression', 'BBBP', 'ClinTox', 'Delaney'],
help='Dataset to use')
parser.add_argument(
'-m',
Expand Down
4 changes: 2 additions & 2 deletions examples/gnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def load_model(save_pth, args, tasks, hyperparams):
mode = 'classification'
# binary classification
n_classes = 2
elif args['dataset'] in ['BACE_regression']:
elif args['dataset'] in ['BACE_regression', 'Delaney']:
mode = 'regression'
n_classes = None
else:
Expand Down Expand Up @@ -177,7 +177,7 @@ def objective(hyperparams):
parser.add_argument(
'-d',
'--dataset',
choices=['BACE_classification', 'BACE_regression', 'BBBP', 'ClinTox'],
choices=['BACE_classification', 'BACE_regression', 'BBBP', 'ClinTox', 'Delaney'],
help='Dataset to use')
parser.add_argument(
'-m',
Expand Down
6 changes: 5 additions & 1 deletion examples/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def decide_metric(dataset):
if dataset in ['BACE_classification', 'BBBP', 'ClinTox']:
return 'roc_auc'
elif dataset == 'BACE_regression':
elif dataset in ['BACE_regression', 'Delaney']:
return 'rmse'
else:
return ValueError('Unexpected dataset: {}'.format(dataset))
Expand Down Expand Up @@ -79,6 +79,10 @@ def load_dataset(args):
from deepchem.molnet import load_clintox
tasks, all_dataset, transformers = load_clintox(
featurizer=featurizer, splitter=splitter, reload=False)
elif args['dataset'] == 'Delaney':
from deepchem.molnet import load_delaney
tasks, all_dataset, transformers = load_delaney(
featurizer=featurizer, splitter=splitter, reload=False)
else:
raise ValueError('Unexpected dataset: {}'.format(args['dataset']))

Expand Down

0 comments on commit fe94164

Please sign in to comment.