Skip to content
Snippets Groups Projects
Commit c0852b66 authored by Jörg Martin's avatar Jörg Martin
Browse files

Better sorted output of create_tabular

parent a3b24d3b
No related merge requests found
...@@ -13,23 +13,28 @@ for filename in list_of_result_files: ...@@ -13,23 +13,28 @@ for filename in list_of_result_files:
results[data] = json.load(f) results[data] = json.load(f)
## header ## header
header_string = 'DATA' header_string = 'DATA '
offset = 20
for metric in metrics_to_display: for metric in metrics_to_display:
header_string += f' {metric}' header_string += f' {metric} '
print(header_string) print(header_string)
print(offset * '_' + 70 * '_')
## results ## results
for data in results.keys(): for data in results.keys():
noneiv_results = [results[data]['noneiv'][metric] noneiv_results = [results[data]['noneiv'][metric]
for metric in metrics_to_display] for metric in metrics_to_display]
noneiv_results_string = f'{data} - nonEiV:' noneiv_row_name = f'{data} - nonEiV:'
noneiv_results_string = noneiv_row_name + (offset - len(noneiv_row_name)) * ' '
for [metric_mean, metric_std] in noneiv_results: for [metric_mean, metric_std] in noneiv_results:
noneiv_results_string += f' {metric_mean:.3f} ({metric_std:.3f})' noneiv_results_string += f' {metric_mean:.3f} ({metric_std:.3f})'
print(noneiv_results_string) print(noneiv_results_string)
eiv_results = [results[data]['eiv'][metric] eiv_results = [results[data]['eiv'][metric]
for metric in metrics_to_display] for metric in metrics_to_display]
eiv_results_string = f'{data} - EiV:' eiv_row_name = f'{data} - EiV:'
eiv_results_string = eiv_row_name + (offset - len(eiv_row_name)) * ' '
for [metric_mean, metric_std] in eiv_results: for [metric_mean, metric_std] in eiv_results:
eiv_results_string += f' {metric_mean:.3f} ({metric_std:.3f})' eiv_results_string += f' {metric_mean:.3f} ({metric_std:.3f})'
print(eiv_results_string) print(eiv_results_string)
print(offset * '_' + 70 * '_')
...@@ -35,6 +35,9 @@ pip install EIVPackage/ ...@@ -35,6 +35,9 @@ pip install EIVPackage/
Installing this package will make 3 modules available to the python environment: `EIVArchitectures` (for building EiV Models), `EIVTrainingRoutines` (containing a general training framework), `EIVGeneral` (containing a single module needed for repeated sampling). Installing this package will make 3 modules available to the python environment: `EIVArchitectures` (for building EiV Models), `EIVTrainingRoutines` (containing a general training framework), `EIVGeneral` (containing a single module needed for repeated sampling).
## Missing
+ Tell to create folders, like `Experiments/results`
## Contributing ## Contributing
Will be completed upon publication. The code will be made publically available on a repository under a BSD-like license. Will be completed upon publication. The code will be made publically available on a repository under a BSD-like license.
......
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