We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
log_posterior_probability
Sliced a dataset I wanted to calibrate a model to (input argument data of log_posterior_probability) in a wrong way making it an empty series:
data
Series([], Name: Weekly_Hosp, dtype: float64)
This was not caught by the input checks resulting in the following error in pySODM's internals:
File "/Users/twallema/Documents/academic/github/pySODM/src/pySODM/optimization/objective_functions.py", line 428, in compute_log_likelihood interp = out_copy.interp({time_index: df.index.get_level_values(time_index).unique().values}, method="linear")
when trying to calibrate that model.
Add an appropriate input check for empty datasets.
The text was updated successfully, but these errors were encountered:
Caught by #98
Sorry, something went wrong.
No branches or pull requests
What I Did
Sliced a dataset I wanted to calibrate a model to (input argument
data
oflog_posterior_probability
) in a wrong way making it an empty series:This was not caught by the input checks resulting in the following error in pySODM's internals:
when trying to calibrate that model.
Proposed fix
Add an appropriate input check for empty datasets.
The text was updated successfully, but these errors were encountered: