Skip to content
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1e64356
change the requirements
williambdean Jun 16, 2025
2bdf480
use deserialize from pymc-extras
williambdean Jun 16, 2025
cfcefca
point to the pymc-extras module
williambdean Jun 16, 2025
adb4d3c
remove tests after migration
williambdean Jun 16, 2025
856fd5f
move to new import
williambdean Jun 16, 2025
bc26772
change spacing
williambdean Jun 16, 2025
7fc99f1
import for registering
williambdean Jun 16, 2025
06704d6
change the import
williambdean Jun 16, 2025
c0bc3c8
Merge branch 'main' into pymc-extras
williambdean Jun 17, 2025
2f0f987
bump python min to 3.11
williambdean Jun 17, 2025
1f4a1ab
use lower bounds
williambdean Jun 17, 2025
e8620af
run pre-commit
williambdean Jun 17, 2025
f1b09af
update the readthedocs python version
williambdean Jun 17, 2025
f652e76
some explicit deprecation warnings
williambdean Jun 19, 2025
d89237e
assert for the warnings
williambdean Jun 19, 2025
cae3f37
Merge branch 'main' into pymc-extras
williambdean Jun 19, 2025
f140ad5
Merge branch 'main' into pymc-extras
williambdean Jun 20, 2025
85ad3df
changing imports
williambdean Jun 20, 2025
d6e89a9
Merge branch 'main' into pymc-extras
williambdean Jun 22, 2025
2af322a
Merge branch 'main' into pymc-extras
williambdean Jun 25, 2025
9454a7d
Merge branch 'main' into pymc-extras
williambdean Jul 12, 2025
d87fe14
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 12, 2025
72fdf32
change the variable name with the latest pymc-extras
williambdean Jul 12, 2025
0a5d1ef
Merge branch 'main' into pymc-extras
juanitorduz Jul 24, 2025
ec58f6c
Merge branch 'main' into pymc-extras
williambdean Jul 24, 2025
cdfce68
Merge branch 'main' into pymc-extras
juanitorduz Jul 24, 2025
c450288
update to 0.20.0
williambdean Jul 24, 2025
fe6f2ee
try stricter deps
juanitorduz Jul 25, 2025
2eb6ac4
Merge branch 'main' into pymc-extras
juanitorduz Jul 25, 2025
1320629
fix tests
juanitorduz Jul 25, 2025
d122605
Merge branch 'main' into pymc-extras
juanitorduz Jul 25, 2025
79b217d
Merge branch 'main' into pymc-extras
juanitorduz Jul 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/guide/benefits/model_deployment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing.mmm import MMM, GeometricAdstock, LogisticSaturation\n",
"from pymc_marketing.prior import Prior\n",
"\n",
"az.style.use(\"arviz-darkgrid\")\n",
"plt.rcParams[\"figure.figsize\"] = [12, 7]\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/bass/bass_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@
"import pandas as pd\n",
"import pymc as pm\n",
"import xarray as xr\n",
"from pymc_extras.prior import Prior, Scaled\n",
"\n",
"from pymc_marketing.bass.model import create_bass_model\n",
"from pymc_marketing.plot import plot_curve\n",
"from pymc_marketing.prior import Prior, Scaled\n",
"\n",
"az.style.use(\"arviz-darkgrid\")\n",
"plt.rcParams[\"figure.figsize\"] = [12, 7]\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/clv/clv_quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
"import numpy as np\n",
"import pandas as pd\n",
"from arviz.labels import MapLabeller\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing import clv\n",
"from pymc_marketing.prior import Prior"
"from pymc_marketing import clv"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/clv/dev/beta_geo_beta_binom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"\n",
"import pymc as pm\n",
"from pymc_marketing.clv import BetaGeoBetaBinomModel\n",
"from pymc_marketing.prior import Prior"
"from pymc_extras.prior import Prior"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"from fastprogress.fastprogress import progress_bar\n",
"\n",
"from pymc_marketing import clv\n",
"from pymc_marketing.prior import Prior\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from tests.conftest import set_model_fit\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/clv/dev/utilities_plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"from pymc_marketing.clv import utils\n",
"from pymc_marketing.clv import ParetoNBDModel\n",
"from pymc_marketing.prior import Prior\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing.clv import utils, plotting"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/clv/pareto_nbd.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"import xarray as xr\n",
"from fastprogress.fastprogress import progress_bar\n",
"from lifetimes import ParetoNBDFitter\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing import clv\n",
"from pymc_marketing.prior import Prior\n",
"\n",
"# Plotting configuration\n",
"az.style.use(\"arviz-darkgrid\")\n",
Expand Down
8 changes: 4 additions & 4 deletions docs/source/notebooks/general/model_configuration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"import numpy as np\n",
"import pandas as pd\n",
"import pymc as pm\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing.model_config import ModelConfigError, parse_model_config\n",
"from pymc_marketing.prior import Prior\n",
"\n",
"az.style.use(\"arviz-darkgrid\")\n",
"plt.rcParams[\"figure.figsize\"] = [12, 7]\n",
Expand Down Expand Up @@ -62,7 +62,7 @@
"source": [
"## Prior Distributions\n",
"\n",
"The {class}`~pymc_marketing.prior.Prior` class is our way to expression distributions and relationships between them.\n",
"The {class}`~pymc_extras.prior.Prior` class is our way to expression distributions and relationships between them.\n",
"\n",
"### Basic Usage\n",
"\n",
Expand Down Expand Up @@ -1673,7 +1673,7 @@
" nrows=2, ncols=1, figsize=(10, 9), sharex=True, sharey=True, layout=\"constrained\"\n",
")\n",
"\n",
"az.plot_posterior(prior, var_names=[\"var\"], grid=(2, 1), ax=axes)\n",
"az.plot_posterior(prior, var_names=[\"variable\"], grid=(2, 1), ax=axes)\n",
"fig.suptitle(\"Prior Distribution\", fontsize=18, fontweight=\"bold\");"
]
},
Expand Down Expand Up @@ -1714,7 +1714,7 @@
" return df.plot.scatter(x=x, y=y, title=title)\n",
"\n",
"\n",
"ax = prior[\"var\"].to_series().unstack().pipe(plot_correlation)\n",
"ax = prior[\"variable\"].to_series().unstack().pipe(plot_correlation)\n",
"padding = 0.025\n",
"bounds = (0 - padding, 1 + padding)\n",
"ax.set(xlim=bounds, ylim=bounds);"
Expand Down
8 changes: 4 additions & 4 deletions docs/source/notebooks/general/prior_predictive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"(prior_predictive)=\n",
"# Prior Predictive Modeling\n",
"\n",
"This guide provides an introduction to prior predictive modeling using PyMC (and PyMC-Marketing) and the {class}`Prior <pymc_marketing.prior.Prior>` class from PyMC-Marketing. We start by looking into a simpler example and then we will see how to apply to real case scenarios with marketing mix models in PyMC-Marketing.\n",
"This guide provides an introduction to prior predictive modeling using PyMC (and PyMC-Marketing) and the {class}`Prior <pymc_extras.prior.Prior>` class from PyMC-Marketing. We start by looking into a simpler example and then we will see how to apply to real case scenarios with marketing mix models in PyMC-Marketing.\n",
"\n",
"\n",
"Before diving into the technical details, let's understand why priors are crucial in Bayesian analysis and their practical importance in industry applications.\n",
Expand Down Expand Up @@ -135,7 +135,7 @@
"3. **Model Sensitivity**: \n",
" The relationship between $\\theta^{(s)}$ and $y^{(s)}$ shows how parameters influence predictions\n",
"\n",
"Let's explore these concepts through practical examples using the {class}`Prior <pymc_marketing.prior.Prior>` class from PyMC-Marketing.\n"
"Let's explore these concepts through practical examples using the {class}`Prior <pymc_extras.prior.Prior>` class from PyMC-Marketing.\n"
]
},
{
Expand All @@ -161,11 +161,11 @@
"import pymc as pm\n",
"import seaborn as sns\n",
"from numpy.typing import NDArray\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing.hsgp_kwargs import HSGPKwargs\n",
"from pymc_marketing.mmm import MMM, GeometricAdstock, LogisticSaturation\n",
"from pymc_marketing.paths import data_dir\n",
"from pymc_marketing.prior import Prior\n",
"\n",
"seed: int = sum(map(ord, \"prior\"))\n",
"rng: np.random.Generator = np.random.default_rng(seed=seed)\n",
Expand Down Expand Up @@ -1975,7 +1975,7 @@
"## Key Takeaways\n",
"\n",
"1. Prior predictive modeling helps us validate our model assumptions before using real data\n",
"2. The {class}`Prior <pymc_marketing.prior.prior.Prior>` class provides a convenient interface for:\n",
"2. The {class}`Prior <pymc_extras.prior.prior.Prior>` class provides a convenient interface for:\n",
" - Creating and visualizing prior distributions\n",
" - Sampling from prior predictive distributions\n",
"3. Always visualize your prior predictive distributions to ensure they align with your domain knowledge\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/mmm/mmm_case_study.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
"import numpy as np\n",
"import pandas as pd\n",
"import seaborn as sns\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing.metrics import crps\n",
"from pymc_marketing.mmm import MMM, GeometricAdstock, LogisticSaturation\n",
"from pymc_marketing.mmm.utils import apply_sklearn_transformer_across_dim\n",
"from pymc_marketing.prior import Prior\n",
"\n",
"warnings.filterwarnings(\"ignore\", category=FutureWarning)\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/mmm/mmm_causal_identification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
"import seaborn as sns\n",
"from graphviz import Digraph\n",
"from IPython.display import SVG, display\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing.mmm import MMM, GeometricAdstock, MichaelisMentenSaturation\n",
"from pymc_marketing.mmm.transformers import geometric_adstock, michaelis_menten\n",
"from pymc_marketing.prior import Prior"
"from pymc_marketing.mmm.transformers import geometric_adstock, michaelis_menten"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/source/notebooks/mmm/mmm_components.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"import pandas as pd\n",
"import pymc as pm\n",
"import xarray as xr\n",
"from pymc_extras.prior import Prior\n",
"\n",
"from pymc_marketing import mmm\n",
"from pymc_marketing.plot import plot_curve\n",
"from pymc_marketing.prior import Prior\n",
"\n",
"az.style.use(\"arviz-darkgrid\")\n",
"plt.rcParams[\"figure.figsize\"] = [12, 7]\n",
Expand Down
Loading
Loading