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

feat: added ds for robyn_response() #600

Merged
merged 94 commits into from
Feb 28, 2023
Merged

Conversation

laresbernardo
Copy link
Collaborator

No description provided.

@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 10, 2023
@laresbernardo laresbernardo self-assigned this Jan 13, 2023
@laresbernardo laresbernardo changed the title feat: added ds for robyn_response single date feat: added ds for robyn_response() Jan 16, 2023
R/R/response.R Outdated Show resolved Hide resolved
laresbernardo and others added 27 commits February 16, 2023 09:10
- Need to reconsider mean_response calculation: for historical mean_response, maybe no need to simulate historical spend with mean spend?
- Need to include fx_objective in robyn_response to have clearer response process
- align difference between using dates vector or last_n in date_range in robyn_response
- to-do: in model onepager, remove total roi from share plot, remove mean from error plot, add total_roi and mean_roi to error plot
- added carryover area to onepager response curve plot
- adapted initial spend calculation for allocator
- added total budget as simulation]
- to-do: need to re-assess if current initial spend makes sense (maybe come back to histSpendWindowUnitTotal? how to interpret 0 raw spend but has response from adstock?)
fix: enable contrains to 0 to remove media var
@laresbernardo laresbernardo merged commit d152ad3 into main Feb 28, 2023
@laresbernardo
Copy link
Collaborator Author

Summary:

  • Feat: all new one-pager for robyn_allocator() showing initial, bounded and less-bounded scenarios, using last month's worth of data by default. Relevant changes from previous versions: initial spend is now mean of date range selected, not non-zero mean anymore + deprecated "max_response_expected_spend" scenario + carryover information is now provided in the curves + inform user when budget is topped and can't be fully allocated + added mROAS / mCPA for better understanding of allocation.
  • Feat: robyn_response() now requires date or date range for adstocking (last period by default) and accepts single or multiple values to return different use cases and scenarios.
  • Feat: new transform_adstock() exported wrapper function.
  • Feat: added NRMSE validation on test set.
  • Feat: added prophet monthly component.
  • Fix: added correct solID for fixed hyperparameters (not 1_1_1).
  • Recode: reduced the size of xDecompVec on OutputCollect to only pareto-front models.
  • Recode: got rid of "ggcorrplot" and "rPref" package dependencies.
  • Docs: added blueprint link to demo.R.

Co-authored: @gufengzhou @laresbernardo

@laresbernardo laresbernardo deleted the ds-for-robyn_response branch March 7, 2023 15:09
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.

3 participants