lisphilar / covid19-sir

CovsirPhy: Python library for COVID-19 analysis with phase-dependent SIR-derived ODE models.
https://lisphilar.github.io/covid19-sir/
Apache License 2.0
109 stars 43 forks source link

Scenario.simulate(): title of the figure should use "simulated" rather than "predicted" #283

Closed lisphilar closed 3 years ago

lisphilar commented 3 years ago

Summary

Title of the figure created by Scenario.simulate() should be "Simulated number of cases" rather than "Predicted number of cases". This is because this method does not predict the parameter values. This method simulate the number of cases based on specified parameter values.

(Optional) Related classes

Codes and outputs:

import covsirphy as cs
# Dataset preparation
data_loader = cs.DataLoader("input")
jhu_data = data_loader.jhu()
population_data = data_loader.population()
# Scenario analysis
snl = cs.Scenario(jhu_data, population_data, country="Japan")
# S-R trend analysis
snl.trend().summary()
# Parameter estimation of SIR-F model
snl.estimate(cs.SIRF)
# Simulation for 30 days
snl.add(days=30)
snl.simulate()

Environment

lisphilar commented 3 years ago

This will fixed in version 2.9.1-beta