Closed lisphilar closed 3 years ago
Call tree of parameter estimation is as follows.
cs.analysis.Scenario.estimate(cs.SIRF)
Scenario.estimate(cs.SIRF)
calls cs.phase.phase_estimator.MPEstimator()
Scenario.estimate(cs.SIRF)
registers records of phases (as instances of cs.phase.phase_unit.PhaseUnit
) to MPEstimator(cs.SIRF)
Scenario.estimate(cs.SIRF)
calls MPEstimator.run()
MPEstimator.run()
calls PhaseUnit.estimate()
in parallelPhaseUnit.estimate()
calls cs.simulation.Estimator.run(model=cs.SIRF)
cs.simulation.Estimator.run(model=cs.SIRF)
update parameter set (hyperparameter estimation with optuna
package) while runtime < timeout (default: 60 sec) and the max values of simulated number of cases are not in allowance (0.98-1.02) of the max values of actual numbers of cases.We first need to shorten runtime of trials of parameter estimation so that we run more trial within time limit (default: 1min).
RMSLE score calculated with np.sqrt(sklearn.metrics.mean_squared_log_error(x1, x2))
will be directory used in Estimater.error_f
.
With #320 and version 2.10.0-mu, default value of Estimator.run(timeout)
was changed from 60 to 180.
With Estimator
class, CovsirPhy continues estimation while runtime does not over timeout
and max simulated number of cases is not in the range of (max actual number * 0.98, max actual number * 1.02)
.
Summary
We have low accuracy of parameter estimation with
Scenario.estimate()
and SIR-F model.(Optional) Related classes
covsirphy.Scenario
covsirphy.Estimator
Codes and outputs:
Outputs are in #270, #271 , #272, #273 and #274 .