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
110 stars 44 forks source link

[Discuss] Parameter estimation with Brazil data raised ValueError #979

Closed lisphilar closed 2 years ago

lisphilar commented 2 years ago

Summary

Parameter estimation with Brazil data raised ValueError.

Codes

import covsirphy as cs
# Dataset preparation
loader = cs.DataLoader("input")
jhu_data = loader.jhu()
# Scenario analysis
snl = cs.Scenario(country="Brazil")
snl.register(jhu_data)
snl.records("CFR");
snl.trend();
snl.estimate(cs.SIRF, metric="RMSLE")

https://gist.github.com/lisphilar/a8c324b76dfb5fe3175920e361567b5b

Outputs

ValueError: When the targets have multiple columns, we cannot select RMSLE.

Environment

lisphilar commented 2 years ago

This is solved at this time. https://gist.github.com/lisphilar/a996e320cf7cebe93ab4dfb3940e8819