-
Notifications
You must be signed in to change notification settings - Fork 252
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
Remove duplicate attrs/functions from MMM #1336
Conversation
pymc_marketing/mmm/base.py
Outdated
@property | ||
def fit_result(self) -> Dataset: | ||
"""Get the posterior data.""" | ||
if self.idata is None or "posterior" not in self.idata: | ||
raise RuntimeError("The model hasn't been fit yet, call .fit() first") | ||
return self.idata["posterior"] |
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.
Let's keep this for now and leave it for the scope of #1333 after this
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.
I did it and have updated the PR. I can work on #1333 after this.
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.
Perfect. Thanks
Just waiting for the CI/CD of this one then will merge in
Thanks for the PR @sreekailash Your setup seems good so far. I've updated the base branch so you will have to do a Just have comment about the PR scope and trying to keep it even smaller 😄 |
9f9dbae
to
b2a955e
Compare
Thanks for the suggestion @wd60622 . I will keep that in mind going forward. I have updated the PR. Let me know how this looks. Appreciate the support. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1336 +/- ##
=======================================
Coverage 95.34% 95.35%
=======================================
Files 47 47
Lines 4963 4948 -15
=======================================
- Hits 4732 4718 -14
+ Misses 231 230 -1 ☔ View full report in Codecov by Sentry. |
Hi @sreekailash can you fix the failing tests. The error message is now different |
You should be able to change the "match" based on the new message |
@wd60622 Can you check now? |
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.
Thanks for the contributions @sreekailash !
Still interested in the other issue? |
@wd60622 . Yes! Let me work on the fit_result and will raise a draft PR. Thanks for the support! :) |
Description
Here are the changes I have made :
Related Issue
Checklist
Modules affected
Type of change
📚 Documentation preview 📚: https://pymc-marketing--1336.org.readthedocs.build/en/1336/