with open(output_file, "a") as f:
writer = csv.DictWriter(f, ["L", "k", "time"])
for L in sorted(dataset_sizes):
for k_ in k:
print("L = {}; k = {}".format(L, k_))
train_set = load_train(L)
After Change
for f in listdir("/home/data/critical-2d-ising/")
if isdir(join("/home/data/critical-2d-ising/", f))]
runs = list(product(dataset_sizes, k))
shuffle(runs)
with open(output_file, "a") as f: