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

Allow Negative Values in Media Channels #1092

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

louismagowan
Copy link
Contributor

@louismagowan louismagowan commented Oct 19, 2024

Description

Currently the MMM by default informs our channels to be >=0 via the HalfNormal and inclusion of only non-negative values.

It would be nice to have an option to pass in a column of channels that contain negative values, such that the effect of that channel is allowed to be negative on model target - but while not having to blanket-disable the data validation validate_data=False

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--1092.org.readthedocs.build/en/1092/

@louismagowan
Copy link
Contributor Author

Still need to do tests and docs ⏳

@louismagowan louismagowan marked this pull request as ready for review October 23, 2024 18:12
@github-actions github-actions bot added the tests label Oct 23, 2024
@github-actions github-actions bot added the duplicate This issue or pull request already exists label Oct 24, 2024
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.

Thank you @louismagowan !

@wd60622
Copy link
Contributor

wd60622 commented Oct 24, 2024

Closes #413

@juanitorduz juanitorduz merged commit ab8e3b4 into pymc-labs:main Oct 24, 2024
13 checks passed
@louismagowan louismagowan deleted the allow_negative_values branch October 24, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists MMM request discussion tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optional Negative Values in MMM Channels
3 participants