Skip to content

Conversation

PabloRoque
Copy link
Contributor

@PabloRoque PabloRoque commented Sep 3, 2025

Description

Provides serialization/deserialization of MuEffect using Pydantic BaseModel

Related Issue

  • Closes #
  • Related to #

Checklist


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

Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.04%. Comparing base (e2ca250) to head (e5823da).

❗ There is a different number of reports uploaded between BASE (e2ca250) and HEAD (e5823da). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (e2ca250) HEAD (e5823da)
23 21
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1922       +/-   ##
===========================================
- Coverage   92.00%   71.04%   -20.97%     
===========================================
  Files          66       66               
  Lines        7853     7856        +3     
===========================================
- Hits         7225     5581     -1644     
- Misses        628     2275     +1647     

☔ 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.

self.fourier = fourier
self.date_dim_name: str = date_dim_name
fourier: InstanceOf[FourierBase]
date_dim_name: str = Field("date")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to supply the date_dim_name here, as the mutltidimensional MMM has the date_column attribute?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, because MuEffect is just an interface that has nothing to do with an MMM class.
So either we have this explicit date_dim_name or we need to introduce coupling with the MMM class.

@@ -259,6 +263,8 @@ class LinearTrendEffect:
The LinearTrend instance to wrap.
prefix : str
The prefix to use for variables in the model.
date_dim_name : str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same date_dim_name question as with FourierEffect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants