rules/pymc/deprecated-nuts-sampler-kwargs.md
nuts_sampler_kwargs= is deprecated in PyMC 6.4.0 (FutureWarning) and raises ValueError when combined with nuts=. Pass NUTS sampler and backend options directly in nuts={...}.
diff
| 1 | -idata = pm.sample(nuts_sampler="nutpie", nuts_sampler_kwargs={"backend": "jax"}, random_seed=0) |
| 2 | +idata = pm.sample(nuts_sampler="nutpie", nuts={"backend": "jax"}, random_seed=0) |
What the rule reports
Calls to pm.sample passing nuts_sampler_kwargs= (warning when alone, error when passed alongside nuts=).
How to fix it
Rename nuts_sampler_kwargs= to nuts=, or merge its entries into the existing nuts= dictionary.