Skip to content

Conversation

@NathanielF
Copy link
Contributor

@NathanielF NathanielF commented Oct 18, 2025

Description

Fixing bug on nested logit when using pymc 5.26 and ensuring parameter identification holds.

Related Issue

Following discussion here: #2011

I've opened a clean branch from main to fix the bug and test parameter identification. I've added a new test and demonstrated the counterfactual removal strategy in the nested logit notebook.

Fix was basically the addition @juanitorduz made but i had keep the dimensions as i had them.


📚 Documentation preview 📚: https://pymc-marketing--2015.org.readthedocs.build/en/2015/

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added docs Improvements or additions to documentation MMM tests customer choice Related to customer choice module labels Oct 18, 2025
@codecov
Copy link

codecov bot commented Oct 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.95%. Comparing base (47d500c) to head (03a2fe9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2015      +/-   ##
==========================================
+ Coverage   93.89%   93.95%   +0.05%     
==========================================
  Files          67       67              
  Lines        9221     9228       +7     
==========================================
+ Hits         8658     8670      +12     
+ Misses        563      558       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
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.

Amazing! Thank you @NathanielF !

@juanitorduz juanitorduz merged commit ca2b78e into main Oct 19, 2025
38 checks passed
@juanitorduz juanitorduz deleted the fix_test_customer_choice branch October 19, 2025 08:41
@juanitorduz juanitorduz mentioned this pull request Oct 19, 2025
@twiecki
Copy link
Contributor

twiecki commented Oct 20, 2025

Should we cut a new release?

@cetagostini-wise
Copy link
Contributor

Should we cut a new release?

We probably do it today!

We are solving some other issue in https://github.com/pymc-labs/pymc-marketing/actions/runs/18628039054/job/53108823321?pr=2010

This will unlock 2 PRs waiting for merge :) after it. we can do release.

TeemuSailynoja pushed a commit that referenced this pull request Oct 20, 2025
* fixing fixed beta bug adding new test for consumer choice

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

* fix linting

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

* shorten line length

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

* running ruff

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

* running ruff format

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

* adding beta_fixed coefficients in notebook

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

* text edit to force job re-run

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>

---------

Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer choice Related to customer choice module docs Improvements or additions to documentation MMM tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants