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

plot_pre_post_budget_allocation_comparison error with Geo data #69

Closed
virithavanama opened this issue Sep 16, 2022 · 6 comments
Closed
Assignees

Comments

@virithavanama
Copy link

I running the MMM with 2 channels and 10 geo locations. Model has mean R2 score of 98, r_hat values <1.1
But when running plot_pre_post_budget_allocation_comparison, its giving me below error:
image
Also plot_media_baseline_contribution_area_plot is giving below error:
Screen Shot 2022-09-16 at 10 00 46 AM

@pabloduque0
Copy link
Collaborator

@virithavanama can you post the screenshot of the full stack trace in both cases? (Click to expand all frames). That would help us to spot what is going on.

@virithavanama
Copy link
Author

plot_pre_post_budget_allocation_comparison:
image
plot_media_baseline_contribution_area_plot:
image
image

@pabloduque0
Copy link
Collaborator

Can you share the shapes of:

  • mmm.media
  • optimal_budget_allocation
  • previous_budget_allocation

And the length of mmm.media_names

Thanks!

@pabloduque0 pabloduque0 self-assigned this Sep 19, 2022
@virithavanama
Copy link
Author

mmm.media -> (195, 2, 10)
optimal_budget_allocation -> (2,)
previous_budget_allocation -> (2,)
mmm.media_names -> (20,)

@pabloduque0
Copy link
Collaborator

Did you provide media_names directly?

If so, you only need to provide a list of length n_channels we will add geo suffix/labeling for plots.

@virithavanama
Copy link
Author

Thank you, removing the media_names solved the issue!

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

No branches or pull requests

2 participants