-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #424 from datamol-io/speed_test
Speed test + largemix mpnn config
- Loading branch information
Showing
14 changed files
with
226 additions
and
165 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# @package _global_ | ||
|
||
architecture: | ||
task_heads: | ||
homolumo: | ||
task_level: graph | ||
out_dim: 1 | ||
hidden_dims: 256 | ||
depth: 2 # Not needed if we have hidden_dims | ||
activation: relu | ||
last_activation: none | ||
dropout: 0.18 | ||
normalization: layer_norm | ||
last_normalization: "none" | ||
residual_type: none | ||
|
||
#Task-specific | ||
predictor: | ||
metrics_on_progress_bar: | ||
homolumo: [] | ||
metrics_on_training_set: | ||
homolumo: ["pearsonr"] | ||
loss_fun: | ||
homolumo: mae_ipu | ||
|
||
# Task-specific | ||
metrics: | ||
homolumo: | ||
- name: mae | ||
metric: mae_ipu | ||
target_nan_mask: null | ||
multitask_handling: mean-per-label | ||
threshold_kwargs: null | ||
- name: pearsonr | ||
metric: pearsonr_ipu | ||
threshold_kwargs: null | ||
target_nan_mask: null | ||
multitask_handling: mean-per-label | ||
|
||
datamodule: | ||
module_type: "MultitaskFromSmilesDataModule" | ||
# module_type: "FakeDataModule" # Option to use generated data | ||
args: # Matches that in the test_multitask_datamodule.py case. | ||
task_specific_args: # To be replaced by a new class "DatasetParams" | ||
homolumo: | ||
df: null | ||
task_level: "graph" | ||
df_path: graphium/data/PCQM4M/pcqm4mv2.csv | ||
# wget https://storage.googleapis.com/datasets-public-research/PCQM4M/cxsmiles/pcqm4mv2.csv | ||
# or set path as https://storage.googleapis.com/datasets-public-research/PCQM4M/cxsmiles/pcqm4mv2.csv directly | ||
smiles_col: "cxsmiles" | ||
label_cols: ["homo_lumo_gap"] | ||
# sample_size: 8000 # use sample_size for test | ||
splits_path: graphium/data/PCQM4M/split_dict_v2.pt # Download with `wget https://storage.googleapis.com/datasets-public-research/PCQM4M/cxsmiles/split_dict_v2.pt` | ||
split_names: ["train", "valid", "test-dev"] | ||
# graphium/data/PCQM4Mv2/split_dict.pt | ||
# graphium/data/PCQM4Mv2/pcqm4m_split.csv | ||
# split_val: 0.1 | ||
# split_test: 0.1 | ||
seed: ${constants.seed} | ||
label_normalization: | ||
method: "normal" |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# @package _global_ | ||
|
||
predictor: | ||
random_seed: ${constants.seed} | ||
optim_kwargs: | ||
lr: 4.e-4 # warmup can be scheduled using torch_scheduler_kwargs | ||
# weight_decay: 1.e-7 | ||
torch_scheduler_kwargs: | ||
module_type: WarmUpLinearLR | ||
max_num_epochs: &max_epochs 100 | ||
warmup_epochs: 10 | ||
verbose: False | ||
scheduler_kwargs: | ||
# monitor: &monitor homolumo/mae/train | ||
# mode: min | ||
# frequency: 1 | ||
target_nan_mask: null # null: no mask, 0: 0 mask, ignore: ignore nan values from loss | ||
flag_kwargs: | ||
n_steps: 0 # 1 | ||
alpha: 0.0 # 0.01 | ||
|
||
|
||
trainer: | ||
seed: ${constants.seed} | ||
logger: | ||
save_dir: logs/PCQMv2 | ||
name: ${constants.name} | ||
project: PCQMv2_mpnn | ||
#early_stopping: | ||
# monitor: *monitor | ||
# min_delta: 0 | ||
# patience: 10 | ||
# mode: &mode min | ||
model_checkpoint: | ||
dirpath: models_checkpoints/PCMQ4Mv2/ | ||
filename: ${constants.name} | ||
#monitor: *monitor | ||
#mode: *mode | ||
save_top_k: 1 | ||
every_n_epochs: 100 | ||
trainer: | ||
max_epochs: *max_epochs | ||
min_epochs: 1 | ||
check_val_every_n_epoch: 20 |
Oops, something went wrong.