You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module lacks a standardized way to process/represent observed data. We should have a class (implemented as an independent module) for processing epi data to facilitate the implementation of the package.
Context
This becomes clear as soon as we start working with time series data.
Required features
A class that reads in a dataset.
Possibly store the data using either polars.DataFrame or a named tuple of jax.numpy.Array.
The getter functions should raise exceptions when the user tries to pull some epi data.
The class should have a function (possibly a static method) to process the desired data.
Possibly implement a metaclass so each model could have their way to address data needs.
Cross-posted from teams; I see three possible routes:
Have no class at all; leave data processing to the user.
Have a single generic class flexible enough to handle all cases.
Have a metaclass called EpiData that can be used as a baseline for each model (so models can include their own data needs), thus: HospitalizationsData(EpiData), WastewaterData(EpiData), etc
I like the third option, as we can always have a default implementation of the metaclass that models can use if there's no need for a specialized implementation.
Asked Dylan this but thought to include here as well:
I've operated somewhat off the notion that EpiData(ABC) should be able to support sample objects (e.g., HospModelSample) but want to possibly cease pursuing this path if EpiData(ABC) is to be designed exclusively for artificial / observed data such as simulated latent infections / admissions, WW data, or variants of NHSN/NSSP like dataframes, which is what I've worked towards. Confirmation here would be helpful.
Goal
The module lacks a standardized way to process/represent observed data. We should have a class (implemented as an independent module) for processing epi data to facilitate the implementation of the package.
Context
This becomes clear as soon as we start working with time series data.
Required features
polars.DataFrame
or a named tuple ofjax.numpy.Array
.Specifications
TBD
Out of scope
Related documents
The text was updated successfully, but these errors were encountered: