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
How can I set the maximum tree depth for the NUTS method from the numpyro library?
The way described in the test file test_mcmc_external.py doesn’t work:
and specifying something via the nuts_kwargs argument throws ValueError: Unused step method arguments: {'nuts_kwargs'}.
I don't know if nuts should be converted to nuts_kwargs, but even if a user were to pass nuts_kwargs to sample, those wouldn't make it to the sample_numpyro_nuts function because we drop arbitrary kwargs passed here:
Shouldn't we use the same API for passing kwargs to the PyMC nuts?
pm.sample(..., {"nuts": ...})`
ricardoV94
changed the title
Numpyro sampler nuts_kwargs can't be passed from sample
Use same API for defining internal and external Nuts kwargs
Feb 6, 2024
Description
User on discourse reported:
I don't know if
nuts
should be converted tonuts_kwargs
, but even if a user were to passnuts_kwargs
tosample
, those wouldn't make it to thesample_numpyro_nuts
function because we drop arbitrarykwargs
passed here:pymc/pymc/sampling/mcmc.py
Line 252 in 261862d
The text was updated successfully, but these errors were encountered: