Skip to content

Commit

Permalink
test for marketig version
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Aug 13, 2024
1 parent 3aa6c8f commit 8003ddf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_mlflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
log_sample_diagnostics,
)
from pymc_marketing.mmm import MMM, GeometricAdstock, LogisticSaturation
from pymc_marketing.version import __version__

seed = sum(map(ord, "mlflow-with-pymc"))
rng = np.random.default_rng(seed)
Expand Down Expand Up @@ -235,6 +236,8 @@ def param_checks(params, draws: int, chains: int, tune: int, nuts_sampler: str)
if nuts_sampler not in ["numpyro", "nutpie", "blackjax"]:
assert params["tuning_steps"] == str(tune)

assert params["pymc_marketing_version"] == __version__

other_keys = ["pymc_version"]
if nuts_sampler not in ["numpyro", "blackjax"]:
other_keys.extend(["inference_library_version"])
Expand Down

0 comments on commit 8003ddf

Please sign in to comment.