Skip to content
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

Fixing issues with inference and NAs #292

Merged
merged 7 commits into from
Sep 13, 2024
Merged

Fixing issues with inference and NAs #292

merged 7 commits into from
Sep 13, 2024

Conversation

saraloo
Copy link
Contributor

@saraloo saraloo commented Aug 8, 2024

Describe your changes.

  • Fixed reading in ground truth data NAs as 0 -> removed this
  • Changed filtering of dates so that we only compare the same simulation/observed dates (post aggregation) and only when observed values are not NA

What does your pull request address? Tag relevant issues.
#286 and related prior issue #272 (do need to filter dates to be the same but was just in the wrong spot)

Mentions of relevant team members.
@shauntruelove @alsnhll

@saraloo saraloo self-assigned this Aug 8, 2024
@saraloo
Copy link
Contributor Author

saraloo commented Aug 8, 2024

Running tests to ensure this is working

@saraloo
Copy link
Contributor Author

saraloo commented Aug 12, 2024

Summary of changes:

  • Remove initial adjustment of NAs in groundtruth to 0s
  • Include filtering to only compare ground truth and simulation output with same date, and that are not NA
  • Change aggregation date to the end of the week (Saturday) rather than first date of the week to better match with typical ground truth data

@saraloo saraloo marked this pull request as ready for review August 19, 2024 15:46
@saraloo
Copy link
Contributor Author

saraloo commented Aug 23, 2024

Added an quick fix change to change the default of the total aggregation likelihood to FALSE

A later enhancement would be to add these sorts of options to the config - eg aggregation dates (in the emcee version, there is a python W-SAT option), and any summed likelihoods considered, or other modifications...

Copy link
Collaborator

@jcblemai jcblemai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very important bug fixes

Copy link
Contributor

@TimothyWillard TimothyWillard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to come back and add unit tests to demonstrate that this change did in fact fix the underlying issue so don't close the corresponding issue yet.

@saraloo
Copy link
Contributor Author

saraloo commented Sep 13, 2024 via email

@jcblemai jcblemai merged commit fb5a9c5 into main Sep 13, 2024
1 check passed
@jcblemai
Copy link
Collaborator

agree on the test @TimothyWillard, but thanks Sara for finding and fixing this

@jcblemai jcblemai deleted the r-inference-fixes branch September 13, 2024 15:56
jcblemai added a commit that referenced this pull request Oct 3, 2024
Fixing issues with inference and NAs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants