Skip to content

Conversation

@laresbernardo
Copy link
Contributor

@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
Copy link
Contributor

@gufengzhou gufengzhou left a comment

Choose a reason for hiding this comment

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

See my comment reg. the allocator.R change.

Copy link
Contributor

@gufengzhou gufengzhou left a comment

Choose a reason for hiding this comment

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

lgtm

@laresbernardo laresbernardo merged commit 98a2261 into main Jan 22, 2025
1 check passed
@laresbernardo laresbernardo deleted the bl09 branch January 22, 2025 14:15
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.

4 participants