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

Draft [Creating a Hierarchical MMM - Model] #460

Closed
wants to merge 5 commits into from

Conversation

cetagostini
Copy link
Contributor

@cetagostini cetagostini commented Dec 8, 2023

Description

Hey everyone, I wanted to remind you about our discussion from a few meetings ago. We talked about the possibility of adding a model that can generate hierarchies. Essentially, the idea is to create a module that will enable us to add hierarchies easily.

I've been working on a draft notebook that demonstrates the implementation of this idea. It's based on the base module, but I've made a few adjustments to make it work better. I'd like to get your feedback on it when you have a chance.

Related Issue

Checklist

Modules affected

  • MMM
  • CLV

Type of change

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

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

@cetagostini cetagostini marked this pull request as draft December 8, 2023 01:47
@cetagostini
Copy link
Contributor Author

Notebook in progress . . .

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.82%. Comparing base (890c469) to head (7616f0f).
Report is 253 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #460   +/-   ##
=======================================
  Coverage   90.82%   90.82%           
=======================================
  Files          21       21           
  Lines        1972     1972           
=======================================
  Hits         1791     1791           
  Misses        181      181           

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

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

Updated plot | Channel response curve by Hierarchy
image

@wd60622
Copy link
Contributor

wd60622 commented Dec 8, 2023

Updated plot | Channel response curve by Hierarchy

That's epic. Can you try for channel to be same color and hierarchy to be, say, linestyle? Think it'd be easier to read

Copy link

review-notebook-app bot commented Dec 10, 2023

View / edit / reply to this conversation on ReviewNB

wd60622 commented on 2023-12-10T09:06:24Z
----------------------------------------------------------------

Is it possible to make use of the pd.DataFrame.to_xarray method?

It might look like this

pd.DataFrame(...).set_index(["date", "control", "hierarchy"]).to_xarray()


Copy link

review-notebook-app bot commented Dec 10, 2023

View / edit / reply to this conversation on ReviewNB

wd60622 commented on 2023-12-10T09:06:25Z
----------------------------------------------------------------

It'd be interesting to plot the "average" curve then the two hierarchy levels around that. To show that the curves are being pulled somewhere


@twiecki
Copy link
Contributor

twiecki commented Feb 5, 2024

What's the status of this? Any blockers to moving this forward?

@cetagostini
Copy link
Contributor Author

I'll open a new PR with this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants