HYLODE / HyUi

HYLODE User Interface Repository
http://hylode.org/
Apache License 2.0
3 stars 2 forks source link

Aggregate predictions from individual predictions #70

Open docsteveharris opened 2 years ago

docsteveharris commented 2 years ago

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

docsteveharris commented 2 years ago

we need to add the taps to the LoS estimates to calculate total bed demand

docsteveharris commented 2 years ago

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

docsteveharris commented 1 year ago

zella working on this still doing some refactoring related to #139 and then this will be an easier follow-on

docsteveharris commented 1 year ago

no updates this week ping @zmek when we're ready: she can pick this up

zmek commented 1 year ago

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)

docsteveharris commented 1 year ago

blocked for now b/c we need a model for icu LoS

docsteveharris commented 1 year ago

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.