-
Notifications
You must be signed in to change notification settings - Fork 339
Integrate multidimensional MMM class with MLflow autologging #2072
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
Conversation
Co-authored-by: williambdean <[email protected]>
Co-authored-by: williambdean <[email protected]>
|
@copilot please ensure that the pre-commit checks pass ... |
Co-authored-by: williambdean <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2072 +/- ##
=======================================
Coverage 92.56% 92.57%
=======================================
Files 68 68
Lines 9420 9422 +2
=======================================
+ Hits 8720 8722 +2
Misses 700 700 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cetagostini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La leyenda viviente!!!!
Integrate new MMM class with MLflow
Plan:
Summary
Successfully integrated the new multidimensional MMM class with MLflow autologging using the existing
patch_mmm_fitfunction. The solution is minimal and follows best practices.Changes Made
Production Code (pymc_marketing/mlflow.py):
MultiDimensionalMMMfrompymc_marketing.mmm.multidimensionalpatch_mmm_fittoMultiDimensionalMMM.fitwhenlog_mmm=TrueTests (tests/test_mlflow.py):
MultiDimensionalMMMmultidimensional_mmm(),toy_multidim_X(),toy_multidim_y()test_autolog_multidimensional_mmm()to verify integrationPre-commit Checks
✅ ruff check: All checks passed
✅ ruff format: Code properly formatted
✅ mypy: No type errors
✅ trailing whitespace: None found
✅ end-of-file: Proper newlines
Both the old MMM class and the new multidimensional MMM class now have identical MLflow integration.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
📚 Documentation preview 📚: https://pymc-marketing--2072.org.readthedocs.build/en/2072/