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

fix: modeling window coverage considers all actual dates data + legacy InputCollect for BA bug #1199

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

laresbernardo
Copy link
Collaborator

@laresbernardo laresbernardo commented Jan 9, 2025

Improve modeling window coverage accuracy by considering all real dates in the data. With this change:

  1. When window_end is not defined, the default is now the latest available day before the next logical date in the data.
  2. Allows for days larger than the max but smaller than the next logical date without a warning.

The results are exactly the same, it's a matter of "correct" coverage. For monthly data, if modeling window covers from "2024-01-01" to "2024-12-31", the data for last month is "2024-12-01" but it actually covers until "2024-12-31".

This logic is triggered only when window_end is not provided.


Also, fixed issue with legacy InputCollect and budget allocator using paid_media_selected (similar to #1194)

@laresbernardo laresbernardo self-assigned this Jan 9, 2025
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 9, 2025
@laresbernardo laresbernardo changed the title fix: modeling window coverage considers all actual dates data fix: modeling window coverage considers all actual dates data + legacy InputCollect for BA bug Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants