Skip to content
Snippets Groups Projects
Commit 5ab8b537 authored by Arthur Batel's avatar Arthur Batel
Browse files

iterations correct

parent a6de4009
No related branches found
No related tags found
No related merge requests found
import os
epochs = [70, 95, 75, 75, 90]
name = ["assist0910_tkde","assist17_tkde","algebra", "math_1","math_2"]
for i in range(4):
print("Ablation (0 no ablation, 1 ablation L2, 2 ablation init, 3 both) ",i)
for a in range(5):
print(name[i])
cmd = "python main.py --epochs "+str(epochs[i])+" --dataTrain ../../data/cdbpr_format/"+str(name[i])+"/train_valid_"+str(a)+".csv --dataTest ../../data/cdbpr_format/"+str(name[i])+"/test_"+str(a)+".csv --ablation "+str(i)
os.system(cmd)
datasets = ["assist0910_tkde", "assist17_tkde", "algebra", "math_1", "math_2"]
for d,dataset in enumerate(datasets) :
print(f'----------{dataset}----------')
for i in range(4):
print("Ablation (0 no ablation, 1 ablation L2, 2 ablation init, 3 both) ",i)
for a in range(5):
cmd = "python main.py --epochs " + str(epochs[d]) +" --dataTrain ../../data/cdbpr_format/" + str(dataset) + "/train_valid_" + str(a) + ".csv --dataTest ../../data/cdbpr_format/" + str(dataset) + "/test_" + str(a) + ".csv --ablation " + str(i)
os.system(cmd)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment