Commit 146a3fd1 authored by Martin Řepa's avatar Martin Řepa

Prepare lp_latency and lp_blocking experiment

parent 86ab5ac5
......@@ -18,10 +18,10 @@ from src.data.loader import np_matrix_from_scored_csv
features_num = 2
density = 2 # 1 is low | 2 is high
benign_ratio = 5
benign_ratio = 1
data_file = 'normal_distribution_experiments.csv'
run_times = 3
run_times = 1
legacy_folder = f'/home/ignac/experiments/lp_blocking/' \
f'feat{features_num}_br{benign_ratio}_dens{density}_{run_times}times'
......@@ -184,7 +184,7 @@ def main():
backup_conf_file = f'{legacy_folder}/backup_conf'
print(f'Storing backup conf to {backup_conf_file} file.')
with open(backup_conf_file, 'wb') as file:
pickle.dump(final_experiment, file)
pickle.dump(backup_object, file)
print('File saved')
print('Recapitulation:')
......@@ -202,4 +202,5 @@ if __name__ == "__main__":
with open(log_file, 'a') as log:
sys.stdout = log
main()
# main()
......@@ -37,7 +37,7 @@ i_d = 3
benign_ratio = 5
data_file = 'normal_distribution_experiments.csv'
run_times = 3
run_times = 1
legacy_folder = '/home/ignac/experiments/lp_latency' \
f'feat{features_num}_br{benign_ratio}_dens{density}_ia{i_a}' \
f'_id{i_d}_{run_times}times_latencies{latencies}'
......@@ -200,7 +200,7 @@ def main():
backup_conf_file = f'{legacy_folder}/backup_conf'
print(f'Storing backup conf to {backup_conf_file} file.')
with open(backup_conf_file, 'wb') as file:
pickle.dump(final_experiment, file)
pickle.dump(backup_object, file)
print('File saved')
print('Recapitulation:')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment