-
Notifications
You must be signed in to change notification settings - Fork 220
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 custom priors and likelihood in DelayedSaturated MMM #397
Allow custom priors and likelihood in DelayedSaturated MMM #397
Conversation
That's a weird one. Can you do |
@cetagostini Is there a test I can run to investigate? |
Designed by Juan! Co-Authored-By: Juan Orduz <[email protected]>
Hey guys! @juanitorduz helped me with the test, I think everything seems to work now. @ricardoV94 Let me know! 🚀 |
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.
Small suggestions, big picture looks great 👍
Co-authored-by: Ricardo Vieira <[email protected]>
Co-Authored-By: Markus Sagen <[email protected]>
@ricardoV94 Hey I tried your recommended code based on a new test for the config and it didn't work. |
We are so close @cetagostini 🔥 ! |
Co-authored-by: Juan Orduz <[email protected]>
It seems the regex match is still failing
I guess you need to escape the [ and ] characters 😅 |
+ adding Markus as co-author Co-Authored-By: Markus Sagen <[email protected]>
Yes, the string needed to be corrected. Now it's solved! |
Adding everybody as co-authors Co-Authored-By: nialloulton <[email protected]> Co-Authored-By: Markus Sagen <[email protected]> Co-Authored-By: Juan Orduz <[email protected]> Co-Authored-By: Ricardo Vieira <[email protected]>
Hey there, team! I just wanted to give a quick shoutout to everyone who contributed to this PR. It truly was a group effort and a testament to why the open-source community it's so great and moves so quickly. It all started with an idea, which I drew inspiration from @nialloulton code. @MarkusSagen also provided some valuable insights, as he was working on something similar. @ricardoV94 supervised each step we took, ensuring that our code was not only readable but also bulletproof. Finally after struggling with the tests, and a crazy chatgpt who was throwing out crazy nonsense (Instead of help), Mr. @juanitorduz stepped up and helped us cross the finish line with the missing unit tests. Tremendous teamwork and support, everyone covering our backs in each area, moving the PR. I'm adding everyone as co-authors, because this PR deserves it. Let's keep up the fantastic work! |
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.
Great work @cetagostini
"This branch cannot be rebased due to conflicts" ? Which conflicts? |
There were some merge pull commits from the main branch (instead of merge rebase) |
It's still possible to squash though (just did) |
Work based on the join contribution with @MarkusSagen on pymc-labs#397 Co-Authored-By: Markus Sagen <[email protected]>
…layedSaturated MMM) (#443) * Creating Budget Allocation example * Small change on the notebook * Switching words * Adding missing code * Modifying notebook * Changing introduction * Adding links * Correcting grammar v1 * changing title * Modifying narrative v2 * Modify Narrative V3 * Changing Load Model Section * Small grammar correction * Updating functions and descriptions * Adding section to handling non-fit errors * Correcting git workflows error * Updating notebook * model builder changes * Replacing dict dims * Commenting not used params * Adding _pre_process_prior function * importing missing library * Correcting error on importing * + importing str_for_dist library * Correcting model * solving error on fit * Updating code (Trying to solve dims mismatch) * small adjustment * Applying changes based on juanito examples * Praying for mercy. * debug * modifying _create_distribution function * Adding prior likelihood config * Deleting hint * Adjusting hint * Adding docstrings * Adding extra unit tests * small changes * solving error * Adding last team feedback * Fixing error * New updated notebook Work based on the join contribution with @MarkusSagen on #397 Co-Authored-By: Markus Sagen <[email protected]> * requested changes Co-Authored-By: Markus Sagen <[email protected]> * model builder changes * Replacing dict dims * Commenting not used params * Adding _pre_process_prior function * importing missing library * Correcting error on importing * + importing str_for_dist library * Correcting model * solving error on fit * Updating code (Trying to solve dims mismatch) * small adjustment * Applying changes based on juanito examples * Praying for mercy. * debug * modifying _create_distribution function * Adding prior likelihood config * Deleting hint * Adjusting hint * Adding docstrings * Adding extra unit tests * small changes * solving error * Adding last team feedback * Fixing error * New updated notebook Work based on the join contribution with @MarkusSagen on #397 Co-Authored-By: Markus Sagen <[email protected]> * requested changes Co-Authored-By: Markus Sagen <[email protected]> * Adjusting Change requested by Ricardo on 397 & Grammar on Notebook Co-Authored-By: Ricardo Vieira <[email protected]> * update mmm example * small update * Adding watermark * Moving watermark * small change 2 * Update mmm_example.ipynb --------- Co-authored-by: carlosagostini <[email protected]> Co-authored-by: Markus Sagen <[email protected]> Co-authored-by: Ricardo Vieira <[email protected]>
Hey guys, I'm applying the same configuration of the models on CLV to the MMM models, the idea is to be able to pass priors and custom distributions based on the user needs.
Everything was working properly on the mmm example notebook, except for the
fit()
method 😅 Here is the traceback, looks like is not directly related to the changes:I'll be debugging during the week but if anyone has an idea about what could be, perhaps I can save some time 👍
📚 Documentation preview 📚: https://pymc-marketing--397.org.readthedocs.build/en/397/