|
197 | 197 | #+end_src |
198 | 198 |
|
199 | 199 | #+begin_src jupyter-python |
200 | | - datadir = f'/kaggle/input/results-45to135deg-1gev-data' |
201 | | - plotdir = f'/kaggle/working/plots/{angle_label}' |
202 | | - output_directory = f'/kaggle/working/output/{angle_label}/{energy_setting}' |
| 200 | + #datadir = f'/kaggle/input/results-45to135deg-1gev-data' |
| 201 | + #plotdir = f'/kaggle/working/plots/{angle_label}' |
| 202 | + #output_directory = f'/kaggle/working/output/{angle_label}/{energy_setting}' |
203 | 203 | #+end_src |
204 | 204 |
|
205 | 205 | #+begin_src jupyter-python |
206 | 206 | print('\nprocessing angle setting:', angle_label) |
207 | 207 | print(f' - eta: {etas[angle_label]}') |
208 | 208 |
|
209 | 209 | ## output directories |
210 | | - #output_directory = f'{args.workdir}/{angle_label}/{energy_setting}' |
211 | | - #plotdir = f'{output_directory}/plots' |
212 | | - #datadir = f'{output_directory}/data' |
| 210 | + output_directory = f'{args.workdir}/{angle_label}/{energy_setting}' |
| 211 | + plotdir = f'{output_directory}/plots' |
| 212 | + datadir = f'{output_directory}/data' |
213 | 213 | os.makedirs(plotdir, exist_ok=True) |
214 | 214 | os.makedirs(datadir, exist_ok=True) |
215 | 215 | print(f' - output data directory: {datadir}') |
|
362 | 362 | #+end_src |
363 | 363 |
|
364 | 364 | #+begin_src jupyter-python |
365 | | - print('Bencmarking test data') |
| 365 | + print('Benchmarking test data') |
366 | 366 | # benchmark |
367 | 367 | test_dataset = make_dataset((xtest,)) |
368 | 368 | prediction = model.predict(test_dataset.batch(1000)) |
|
445 | 445 |
|
446 | 446 | with open(f'{output_directory}/results.json', 'w') as f: |
447 | 447 | f.write(json.dumps(results, indent=2)) |
448 | | - print(f' - Found overal rejection {results["rejection"]:.2f} at {results["efficiency"]:.2f} efficiency') |
449 | | - print(f' - Results written to {datadir}/results.json') |
| 448 | + print(f' - Found overall rejection {results["rejection"]:.2f} at {results["efficiency"]:.2f} efficiency') |
| 449 | + print(f' - Results written to {output_directory}/results.json') |
450 | 450 | #+end_src |
451 | 451 |
|
452 | 452 | #+begin_src jupyter-python |
|
0 commit comments