Skip to content

Commit 16c2770

Browse files
committed
Moving task_specific_args to tasks config level
1 parent e6118a2 commit 16c2770

File tree

2 files changed

+46
-43
lines changed

2 files changed

+46
-43
lines changed

expts/hydra-configs/architecture/toymix.yaml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -81,48 +81,6 @@ datamodule:
8181
processed_graph_data_path: "../datacache/neurips2023-small/"
8282
num_workers: 30 # -1 to use all
8383
persistent_workers: False
84-
task_specific_args:
85-
qm9:
86-
df: null
87-
df_path: ${constants.data_dir}/qm9.csv.gz
88-
# wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/qm9.csv.gz
89-
# or set path as the URL directly
90-
smiles_col: "smiles"
91-
label_cols: ["A", "B", "C", "mu", "alpha", "homo", "lumo", "gap", "r2", "zpve", "u0", "u298", "h298", "g298", "cv", "u0_atom", "u298_atom", "h298_atom", "g298_atom"]
92-
# sample_size: 2000 # use sample_size for test
93-
splits_path: ${constants.data_dir}/qm9_random_splits.pt # Download with `wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/qm9_random_splits.pt`
94-
seed: ${constants.seed} #*seed
95-
task_level: graph
96-
label_normalization:
97-
normalize_val_test: True
98-
method: "normal"
99-
100-
tox21:
101-
df: null
102-
df_path: ${constants.data_dir}/Tox21-7k-12-labels.csv.gz
103-
# wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/Tox21-7k-12-labels.csv.gz
104-
# or set path as the URL directly
105-
smiles_col: "smiles"
106-
label_cols: ["NR-AR", "NR-AR-LBD", "NR-AhR", "NR-Aromatase", "NR-ER", "NR-ER-LBD", "NR-PPAR-gamma", "SR-ARE", "SR-ATAD5", "SR-HSE", "SR-MMP", "SR-p53"]
107-
# sample_size: 2000 # use sample_size for test
108-
splits_path: ${constants.data_dir}/Tox21_random_splits.pt # Download with `wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/Tox21_random_splits.pt`
109-
seed: ${constants.seed}
110-
task_level: graph
111-
112-
zinc:
113-
df: null
114-
df_path: ${constants.data_dir}/ZINC12k.csv.gz
115-
# wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/ZINC12k.csv.gz
116-
# or set path as the URL directly
117-
smiles_col: "smiles"
118-
label_cols: ["SA", "logp", "score"]
119-
# sample_size: 2000 # use sample_size for test
120-
splits_path: ${constants.data_dir}/ZINC12k_random_splits.pt # Download with `wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/ZINC12k_random_splits.pt`
121-
seed: ${constants.seed}
122-
task_level: graph
123-
label_normalization:
124-
normalize_val_test: True
125-
method: "normal"
12684
featurization:
12785
atom_property_list_onehot: [atomic-number, group, period, total-valence]
12886
atom_property_list_float: [degree, formal-charge, radical-electron, aromatic, in-ring]

expts/hydra-configs/tasks/toymix.yaml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,49 @@ metrics:
9090
multitask_handling: mean-per-label
9191
average: micro
9292
threshold_kwargs: *threshold_05
93-
zinc: *qm9_metrics
93+
zinc: *qm9_metrics
94+
95+
datamodule:
96+
args:
97+
task_specific_args:
98+
qm9:
99+
df: null
100+
df_path: ${constants.data_dir}/qm9.csv.gz
101+
# wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/qm9.csv.gz
102+
# or set path as the URL directly
103+
smiles_col: "smiles"
104+
label_cols: ["A", "B", "C", "mu", "alpha", "homo", "lumo", "gap", "r2", "zpve", "u0", "u298", "h298", "g298", "cv", "u0_atom", "u298_atom", "h298_atom", "g298_atom"]
105+
# sample_size: 2000 # use sample_size for test
106+
splits_path: ${constants.data_dir}/qm9_random_splits.pt # Download with `wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/qm9_random_splits.pt`
107+
seed: ${constants.seed} #*seed
108+
task_level: graph
109+
label_normalization:
110+
normalize_val_test: True
111+
method: "normal"
112+
113+
tox21:
114+
df: null
115+
df_path: ${constants.data_dir}/Tox21-7k-12-labels.csv.gz
116+
# wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/Tox21-7k-12-labels.csv.gz
117+
# or set path as the URL directly
118+
smiles_col: "smiles"
119+
label_cols: ["NR-AR", "NR-AR-LBD", "NR-AhR", "NR-Aromatase", "NR-ER", "NR-ER-LBD", "NR-PPAR-gamma", "SR-ARE", "SR-ATAD5", "SR-HSE", "SR-MMP", "SR-p53"]
120+
# sample_size: 2000 # use sample_size for test
121+
splits_path: ${constants.data_dir}/Tox21_random_splits.pt # Download with `wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/Tox21_random_splits.pt`
122+
seed: ${constants.seed}
123+
task_level: graph
124+
125+
zinc:
126+
df: null
127+
df_path: ${constants.data_dir}/ZINC12k.csv.gz
128+
# wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/ZINC12k.csv.gz
129+
# or set path as the URL directly
130+
smiles_col: "smiles"
131+
label_cols: ["SA", "logp", "score"]
132+
# sample_size: 2000 # use sample_size for test
133+
splits_path: ${constants.data_dir}/ZINC12k_random_splits.pt # Download with `wget https://storage.googleapis.com/graphium-public/datasets/neurips_2023/Small-dataset/ZINC12k_random_splits.pt`
134+
seed: ${constants.seed}
135+
task_level: graph
136+
label_normalization:
137+
normalize_val_test: True
138+
method: "normal"

0 commit comments

Comments
 (0)