Closed Inglezos closed 3 years ago
For Spain, jhu_data.subset("Spain")
did not show negative values in infected records, but jhu_data.subset_comlement("Spain")[0]
shows negative infected values. This may be the cause for Spain.
For Spain issue, this is resolved with pull request #523.
The negative infected values were caused during monotonic complement of the Confirmed variable. For early low values (1-2), the complement changed these values to 0.99 for example and the int64
transformation cut the value down to 0, while the recovered remained 1, and thus the negative value due to such roundups. I applied ceil()
first instead.
The France issue cause was the known raw data problem with Jan2021 records written by mistake to Jan20 records.
Thanks to your pull request, this bug was fixed!
Summary
Upon running estimator for Spain and France, the code execution ends with runtime error:
ValueError: Mean Squared Logarithmic Error cannot be used when targets contain negative values.
Code
Traceback (for Spain):
Environment