Pymc marketing version used: 0.18.0
In the cross validation 0.18.0 guide rng is set to rng: np.random.Generator = np.random.default_rng(seed=seed).
cv is then run with
results = cv.run(
X,
y,
# You can also pass sampler_config here to speed things up
sampler_config={
"tune": 1_000,
"draws": 1_000,
"chains": 4,
"random_seed": seed,
"target_accept": 0.90,
"nuts_sampler": "numpyro",
},
yaml_path=data_dir / "config_files" / "multi_dimensional_example_model.yml",
)
if instead of a yml file an mmm build_model object is passed error TypeError: Object of type Generator is not JSON serializable is returned.