-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_experiments.py
More file actions
23 lines (19 loc) · 917 Bytes
/
run_experiments.py
File metadata and controls
23 lines (19 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import argparse
DATASET_HELP = 'Choose dataset name from: "ml_20m", "steam", "amz_b", "amz_g"'
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='All experiments')
parser.add_argument('dataset', type=str, help=DATASET_HELP)
args = parser.parse_args()
datasets = [args.dataset,]#['ml_20m', 'steam', 'amz_b', 'amz_g']
models = ['SVD', 'PSIRec', 'TIRec', 'TIRecA', 'TDRec', 'TDRecReinit']
h_models = ['svd', 'tdrec']
as_models = ['PSIRec', 'TIRecA']
for data in datasets:
for model in h_models:
os.system(f"python find_hyperparams.py {data} {model} False")
for model in models:
os.system(f"python dynamical_experiment.py {data} {model} False")
for model in as_models:
os.system(f"python dynamical_ablation_study.py {data} {model} False")
os.system(f"python prepare_graphs.py {data}")