-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
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
Incorrect convolve mode in hospitaladmissions.py
#385
Comments
I think the previous version was to allow the kind of behavior we've now decided to forbid. But I agree with forbidding it, at least by default. |
The issue is actually more with the post-convolve indexing, but this change makes it easier to avoid that error. |
Can you point me to the issue/error that is being referenced here for my knowledge? @damonbayer @dylanhmorris |
With With |
The current implementation only includes slicing one end of the array resulting from convolution. Using |
No, the "valid" mode is correct. The desired shape in the end should be the length of the observed admissions. We can do that here or later on in the "model" code. |
Right! We want the final |
What are the lengths of the relevant quantities? |
|
We should use
mode="valid"
to ensure the output reflects the entireinfection_to_admission_interval
being used.https://github.com/CDCgov/multisignal-epi-inference/blob/main/model/src/pyrenew/latent/hospitaladmissions.py#L189-L193
I believe these lines should be replaced with
The text was updated successfully, but these errors were encountered: