Efficiency-of-Neural-Archit.../config_frequentist.py

33 lines
629 B
Python
Raw Normal View History

2022-04-16 12:20:44 +00:00
############### Configuration file for Frequentist ###############
2022-04-17 16:18:21 +00:00
import os
n_epochs = 100
2023-06-01 08:20:51 +00:00
sens = 1e-9
energy_thrs = 100000
acc_thrs = 0.99
2022-04-16 12:20:44 +00:00
lr = 0.001
num_workers = 4
valid_size = 0.2
batch_size = 256
2022-04-17 16:18:21 +00:00
with open("frq", "r") as file:
frq = int(file.read())
if frq == 1:
with open("tmp", "r") as file:
wide = int(file.read())
if os.path.exists("tmp"):
os.remove("tmp")
else:
raise Exception("Tmp file not found")
print("Frequentist configured to run with width: {}".format(wide))
2023-06-01 08:20:51 +00:00
#if os.path.exists("frq"):
# os.remove("frq")
#else:
# raise Exception("Frq file not found")