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
06e3c9ab
Commit
06e3c9ab
authored
Jan 06, 2021
by
Chris Jewell
Browse files
Added posterior distribution output from hotspot detection.
parent
8b0aab90
Changes
2
Hide whitespace changes
Inline
Side-by-side
hotspot_detection.py
View file @
06e3c9ab
...
...
@@ -2,7 +2,7 @@
import
os
import
yaml
import
pkl
import
pickle
as
pkl
import
h5py
import
numpy
as
np
import
geopandas
as
gp
...
...
@@ -163,7 +163,10 @@ if __name__ == "__main__":
with
open
(
os
.
path
.
expandvars
(
output_folder_path
,
config
[
"output"
][
"posterior_predictive"
]
)
os
.
path
.
join
(
output_folder_path
,
config
[
"output"
][
"posterior_predictive"
]
)
),
"wb"
,
)
as
f
:
pkl
.
dump
(
prediction
,
f
)
template_config.yaml
View file @
06e3c9ab
...
...
@@ -45,7 +45,7 @@ output:
posterior
:
posterior.hd5
national_rt
:
national_rt.xlsx
geopackage
:
prediction.gpkg
posterior_predictive
:
posterior_predictive.pkl
AreaCodeData
:
input
:
json
...
...
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