Open docsteveharris opened 2 years ago
we need to add the taps to the LoS estimates to calculate total bed demand
suggestion today that we might move this aggregation step into the back end @zmek will review this would then need @harryjmoss to support instantiating as an API that the front end can call
zella working on this still doing some refactoring related to #139 and then this will be an easier follow-on
no updates this week ping @zmek when we're ready: she can pick this up
Hi @docsteveharris
I have created a refactored set of scripts and models which will make it possible for you to retrieve an aggregated prediction for ICU occupancy, with just these parameters
(Jon - we can discuss whether we should add model version; currently this just picks up the most recent version)
How to call the function is shown in this notebook (with all the subsidiary MLFlow pyfunc and sklearn stats functions saved to python scripts)
Still to do
Also (for discussion on Tuesday)
blocked for now b/c we need a model for icu LoS
Not blocked if we use the bourneville predictions
Serve this up as a plotly dash function that reads from the taps and aggregate Los above, runs Zella's aggregation function, and returns it into a store on the sitrep page. The display of the aggregation is then a separate piece of work.
This is part of the modelling MWE in that it's the first time we will show the updated aggregate predictions from all the models in one place Including the 'uncertainty'
https://github.com/HYLODE/HySys/blob/dev/hylode/hyui/demand/src/demand/aggregations.py