-
Notifications
You must be signed in to change notification settings - Fork 185
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
remove spend scaling step from budget optimizer #1070
Conversation
if original_scale: | ||
channel_contributions *= self.get_target_transformer()["scaler"].scale_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carlosagostini, Is this still valid, or should we remove the scaling everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contributions still need to be scaled, but not the budget allocation, because the optimizer now returns it in original scale. So post processing is not necessary 🙌🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok! Thanks! Si is this one good to go ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed!
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
In bc78e64 I re-ran the notebook. The results look as expected right? |
BTW: I changed the colours so that they can be synced with the user palettes (that is why we are using the "C0" and "C1") syntax |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1070 +/- ##
==========================================
+ Coverage 95.85% 95.88% +0.02%
==========================================
Files 39 39
Lines 3934 3933 -1
==========================================
Hits 3771 3771
+ Misses 163 162 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good here!
* remove spend scaling step * re-run nb
When looking into #1044 I encountered the following issue: The budget to allocate in the example is of the order of ~ 1e6 and I was getting an uniform split
Nevertheless the plot
showed
which was values of the order ~ 1e12.
I talked with @carlosagostini and notice that with the latest changes we do not need to scale the spends.
📚 Documentation preview 📚: https://pymc-marketing--1070.org.readthedocs.build/en/1070/