You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Prior classes and functions from pymc_marketing.prior module (#2060)
* Initial plan
* Remove deprecated functions and classes from prior module
- Removed deprecated class wrappers: Prior, Censored, Scaled
- Removed deprecated function wrappers: sample_prior, create_dim_handler, handle_dims, register_tensor_transform
- Removed deprecation warning decorators
- Removed unused imports (functools, warnings)
- Kept alternative serialization functionality (is_alternative_prior, deserialize_alternative_prior)
- Updated imports in test_fourier.py and Fourier_Seasonality.py to use pymc_extras.prior
- Removed deprecation tests from test_prior.py
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
* Fix import ordering in Fourier_Seasonality.py
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
* Update nested_logit notebook to use pymc_extras.prior
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
* Fix end-of-file in nested_logit.ipynb for pre-commit lint
Co-authored-by: juanitorduz <22996444+juanitorduz@users.noreply.github.com>
* Fix import ordering in nested_logit.ipynb for ruff pre-commit
Co-authored-by: juanitorduz <22996444+juanitorduz@users.noreply.github.com>
* Fix test_prior.py by restoring import of pymc_marketing.prior
The import is needed to trigger registration of the alternative prior deserializer.
Without it, the deserialize() function doesn't know how to handle dict-based prior specifications.
Co-authored-by: juanitorduz <22996444+juanitorduz@users.noreply.github.com>
* Update tests/test_prior.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix import formatting in test_prior.py for ruff compliance
Ruff requires imports to be properly grouped and formatted. The local import
was reformatted into a multi-line format for consistency.
Co-authored-by: juanitorduz <22996444+juanitorduz@users.noreply.github.com>
* Ensure deserializer registration on pymc_marketing import
Added import of pymc_marketing.prior in the main __init__.py to ensure
the alternative prior deserializer is registered when users import
pymc_marketing or pymc_marketing.mmm. This makes the deserializer
available for YAML-based configurations without requiring explicit
import of the prior module.
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
* Revert "Ensure deserializer registration on pymc_marketing import"
This reverts commit 0adb6c4.
The import of pymc_marketing.prior in __init__.py is not needed since
the deserializer is already registered via pymc_marketing/mmm/builders/factories.py
when using YAML-based configurations.
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: williambdean <57733339+williambdean@users.noreply.github.com>
Co-authored-by: juanitorduz <22996444+juanitorduz@users.noreply.github.com>
Co-authored-by: Juan Orduz <juanitorduz@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments