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

Time Varying Media Contribution Notebook #778

Merged
merged 13 commits into from
Jul 1, 2024
Merged

Conversation

cetagostini
Copy link
Contributor

@cetagostini cetagostini commented Jun 23, 2024

Description

Related Issue

  • Closes #
  • Related to #

Checklist

Modules affected

  • MMM
  • CLV

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pymc-marketing--778.org.readthedocs.build/en/778/

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@cetagostini
Copy link
Contributor Author

pre-commit.ci autofix

Copy link

codecov bot commented Jun 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.86%. Comparing base (9892311) to head (7567504).
Report is 184 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #778   +/-   ##
=======================================
  Coverage   93.86%   93.86%           
=======================================
  Files          28       28           
  Lines        2950     2950           
=======================================
  Hits         2769     2769           
  Misses        181      181           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

review-notebook-app bot commented Jun 23, 2024

View / edit / reply to this conversation on ReviewNB

wd60622 commented on 2024-06-23T19:13:13Z
----------------------------------------------------------------

can use

"\`{tip} syntax instead for a pop out


Copy link

review-notebook-app bot commented Jun 23, 2024

View / edit / reply to this conversation on ReviewNB

wd60622 commented on 2024-06-23T19:13:13Z
----------------------------------------------------------------

Why not just show the graph?


cetagostini commented on 2024-06-23T20:44:49Z
----------------------------------------------------------------

Good idea!

Copy link

review-notebook-app bot commented Jun 23, 2024

View / edit / reply to this conversation on ReviewNB

wd60622 commented on 2024-06-23T19:13:14Z
----------------------------------------------------------------

Does this mean the intercept is underestimated?


cetagostini commented on 2024-06-23T20:44:23Z
----------------------------------------------------------------

Indeed but a little, real intercept is 6. The recover 5.8 

juanitorduz commented on 2024-06-24T09:55:33Z
----------------------------------------------------------------

Can you experiment with the drop_first argument in the HSGP class? We might have redundant intercepts.

@wd60622 wd60622 changed the title Time Varaying Contribution notebook Time Varying Media Contribution Notebook Jun 23, 2024
Copy link
Contributor Author

Indeed but a little, real intercept is 6. The recover 5.8 


View entire conversation on ReviewNB

Copy link
Contributor Author

Good idea!


View entire conversation on ReviewNB

@wd60622 wd60622 added docs Improvements or additions to documentation MMM labels Jun 24, 2024
Copy link
Collaborator

Can you experiment with the drop_first argument in the HSGP class? We might have redundant intercepts.


View entire conversation on ReviewNB

Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T11:20:49Z
----------------------------------------------------------------

Can you take λ_t outside the sum to really show is independent from m?


wd60622 commented on 2024-06-25T04:09:21Z
----------------------------------------------------------------

+1

cetagostini commented on 2024-06-28T17:43:46Z
----------------------------------------------------------------

Done!

Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:17Z
----------------------------------------------------------------

Could to please add a title and x/y axis labels :)


cetagostini commented on 2024-06-28T17:52:15Z
----------------------------------------------------------------

Done!

Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:17Z
----------------------------------------------------------------

canyou put these plots in same columns but different rows (plt.subplots(nrows=2, ncols=1) and use date x-labels?


Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:18Z
----------------------------------------------------------------

date x ranges and maybe also plt.subplots(nrows=2, ncols=1) ?


cetagostini commented on 2024-06-28T17:56:50Z
----------------------------------------------------------------

Done!

Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:19Z
----------------------------------------------------------------

Can we use black for the target variable color? Also x date range labels?


Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:20Z
----------------------------------------------------------------

Line #14.        target_accept=0.98,

Can we reduce this target accept to alt least 0.9 or 0.95 ? Otherwise this makes the model fit a bit concerning.


cetagostini commented on 2024-06-28T17:58:50Z
----------------------------------------------------------------

done!

Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:20Z
----------------------------------------------------------------

Line #4.        target_accept=0.98,

Here we should aim to reduce the target_accept value


Copy link

review-notebook-app bot commented Jun 24, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-06-24T14:56:21Z
----------------------------------------------------------------

"great" with lowe case?


@juanitorduz
Copy link
Collaborator

@cetagostini, very cool notebook! I left some comments :)

Copy link
Contributor

wd60622 commented Jun 25, 2024

+1


View entire conversation on ReviewNB

@juanitorduz juanitorduz added this to the 0.7.0 milestone Jun 26, 2024
Copy link
Contributor Author

Done!


View entire conversation on ReviewNB

Copy link
Contributor Author

Done!


View entire conversation on ReviewNB

Copy link
Contributor Author

Done!


View entire conversation on ReviewNB

Copy link
Contributor Author

done!


View entire conversation on ReviewNB

@cetagostini
Copy link
Contributor Author

pre-commit.ci autofix

@cetagostini
Copy link
Contributor Author

pre-commit.ci autofix

@cetagostini
Copy link
Contributor Author

pre-commit.ci autofix

@wd60622
Copy link
Contributor

wd60622 commented Jul 1, 2024

Let's add a new line (or combine lines) in the README to talk about this feature

What do you think @cetagostini @cetagostini-wise

Copy link

review-notebook-app bot commented Jul 1, 2024

View / edit / reply to this conversation on ReviewNB

juanitorduz commented on 2024-07-01T09:28:16Z
----------------------------------------------------------------

Can we use date_week as the x-axis variable instead of weeks? (and all plots below)


@cetagostini
Copy link
Contributor Author

pre-commit.ci autofix

@cetagostini cetagostini requested a review from wd60622 July 1, 2024 10:03
Copy link
Contributor

@wd60622 wd60622 left a comment

Choose a reason for hiding this comment

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

Amazing

Copy link
Collaborator

@juanitorduz juanitorduz left a comment

Choose a reason for hiding this comment

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

Thanks @cetagostini !

@juanitorduz juanitorduz merged commit 93f5e77 into main Jul 1, 2024
12 checks passed
@juanitorduz juanitorduz deleted the time_varying_notebook branch July 1, 2024 10:47
twiecki pushed a commit that referenced this pull request Sep 10, 2024
* Time Varaying notebook

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* requested changes

* quick change

* Adding to index md

* remove change mmm_budget_allocation_example.ipynb

* quick correction

* Small changes

* Small title change

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Will Dean <[email protected]>
twiecki pushed a commit that referenced this pull request Sep 10, 2024
* Time Varaying notebook

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* requested changes

* quick change

* Adding to index md

* remove change mmm_budget_allocation_example.ipynb

* quick correction

* Small changes

* Small title change

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Will Dean <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation MMM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants