Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
journal_eiv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jörg Martin
journal_eiv
Commits
3493ff60
Commit
3493ff60
authored
3 years ago
by
Jörg Martin
Browse files
Options
Downloads
Patches
Plain Diff
Create tabular updated
parent
c44c4524
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Experiments/create_tabular.py
+16
-4
16 additions, 4 deletions
Experiments/create_tabular.py
with
16 additions
and
4 deletions
Experiments/create_tabular.py
+
16
−
4
View file @
3493ff60
...
...
@@ -3,7 +3,7 @@ import glob
import
argparse
import
json
metrics_to_display
=
[
'
rmse
'
,
'
logdens
'
,
'
bias
'
,
'
true_coverage_numerical
'
]
metrics_to_display
=
[
'
rmse
'
,
'
logdens
'
,
'
bias
'
,
'
true_coverage_numerical
'
,
'
avg_bias
'
]
show_incomplete
=
True
list_of_result_files
=
glob
.
glob
(
os
.
path
.
join
(
'
results
'
,
'
*.json
'
))
...
...
@@ -19,7 +19,13 @@ def save_readout(dictionary, key):
the later doesn
'
t exist, in which case (None,None) is returned.
"""
try
:
return
dictionary
[
key
]
readout
=
dictionary
[
key
]
if
type
(
readout
)
is
list
:
assert
len
(
readout
)
==
2
return
readout
else
:
readout
=
float
(
readout
)
return
(
readout
,
None
)
except
KeyError
:
return
(
None
,
None
)
...
...
@@ -40,7 +46,10 @@ for data in results.keys():
if
metric_mean
is
None
:
noneiv_results_string
+=
'
None (None)
'
else
:
noneiv_results_string
+=
f
'
{
metric_mean
:
.
3
f
}
(
{
metric_std
:
.
3
f
}
)
'
if
metric_std
is
not
None
:
noneiv_results_string
+=
f
'
{
metric_mean
:
.
3
f
}
(
{
metric_std
:
.
3
f
}
)
'
else
:
noneiv_results_string
+=
f
'
{
metric_mean
:
.
3
f
}
(NaN)
'
print
(
noneiv_results_string
)
eiv_results
=
[
save_readout
(
results
[
data
][
'
eiv
'
],
metric
)
for
metric
in
metrics_to_display
]
...
...
@@ -50,7 +59,10 @@ for data in results.keys():
if
metric_mean
is
None
:
eiv_results_string
+=
'
None (None)
'
else
:
eiv_results_string
+=
f
'
{
metric_mean
:
.
3
f
}
(
{
metric_std
:
.
3
f
}
)
'
if
metric_std
is
not
None
:
eiv_results_string
+=
f
'
{
metric_mean
:
.
3
f
}
(
{
metric_std
:
.
3
f
}
)
'
else
:
eiv_results_string
+=
f
'
{
metric_mean
:
.
3
f
}
(NaN)
'
print
(
eiv_results_string
)
print
(
offset
*
'
_
'
+
70
*
'
_
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment