Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Chris Jewell
covid19uk
Commits
afde150b
Commit
afde150b
authored
Oct 03, 2020
by
Chris Jewell
Browse files
Save config into HDF5 file as a lazy way to keep everything together.
parent
5d267412
Changes
1
Hide whitespace changes
Inline
Side-by-side
inference.py
View file @
afde150b
...
...
@@ -251,9 +251,7 @@ if __name__ == "__main__":
# Ideally we insert the inference period into the posterior file
# as this allows us to post-attribute it to the data. Maybe better
# to simply save the data into it as well.
posterior
.
create_dataset
(
"inference_period"
,
data
=
[
b
"2020-06-16"
,
b
"2020-09-08"
]
).
attrs
[
"description"
]
=
"inference period [start, end)"
posterior
.
create_dataset
(
"config"
,
data
=
yaml
.
dump
(
config
))
theta_samples
=
posterior
.
create_dataset
(
"samples/theta"
,
[
NUM_SAVED_SAMPLES
,
current_state
[
0
].
shape
[
0
]],
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment