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

[Data] failed in ODE parameter estimation with Japan data: IndexError #1087

Closed lisphilar closed 2 years ago

lisphilar commented 2 years ago

Summary

As @_Kaira commented on Kaggle Notebook, ODE parameter estimation with complemented Japan data raises IndexError.

Codes

https://gist.github.com/lisphilar/5ea32421ab34760767c5953462ad5558

Outputs

IndexError: index 0 is out of bounds for axis 0 with size 0

Environment

lisphilar commented 2 years ago

In-correct Confirmed data (66702086 cases) on 04Apr2022 can be a cause of this error because this made Infected < 0.

lisphilar commented 2 years ago

In-correct: 66,702,086 Correct: 6,702,086 Source: https://www.mhlw.go.jp/stf/newpage_25006.html

lisphilar commented 2 years ago

I fixed this error of Japan data uploaded to https://github.com/lisphilar/covid19-sir/tree/master/data

lisphilar commented 2 years ago

Revision of data fixed this issue without update of CovsirPhy codes. https://gist.github.com/lisphilar/7c1b6b6eb37c89abba78f399baa516f3