Closed ethho closed 3 years ago
@kellypierce refresh my memory: I believe we want a loss function similar to calc_residual
. This function returns a 1-D vector of (the residual error of) Ih over the time dimension (every time point in the SEIR simulation), correct?
@kellypierce refresh my memory: I believe we want a loss function similar to
calc_residual
. This function returns a 1-D vector of (the residual error of) Ih over the time dimension (every time point in the SEIR simulation), correct?
Yes, that is correct.
attr
class instead of scrappy functionsIh
and Ih2D
from line list data data/CV19Hospital_ICU_DeID_20210414.csv
, generating schema similar to:
date,zip_code,hosp,deceased
munge-ll-hosp
(merged below)data/CV19Hospital_ICU_DeID_20210414.csv
and writes an xarray.DataArray
to data/CV19Hospital_ICU_DeID_20210414.nc
+=
operation on previous row.delta
series instead, to data/CV19Hospital_ICU_DeID_20210414_delta.csv
, it's much smaller anyway.data/CV19Hospital_ICU_DeID_20210414_delta.csv
)xslx
schema is relatively stable, but directly from data provider (not preproc pipeline), so potentially prone to change
As of ef9a908, fitting to heads in beds summed over all vertices (zip codes).
scipy.optimize.least_squares
) similar to SEIR-city v1.4episimlab.fit
submodule, with respective pytests attests/test_fit
.