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
If I don't specify the target_accept, it runs fine:
Sequential sampling (2 chains in 1 job)
CompoundStep
>Metropolis: [n_socks]
>NUTS: [prop_pairs]
100%|██████████| 1000/1000 [00:00<00:00, 1376.44it/s]
100%|██████████| 1000/1000 [00:00<00:00, 1485.11it/s]
The gelman-rubin statistic is larger than 1.05 for some parameters. This indicates slight problems during sampling.
The estimated number of effective samples is smaller than 200 for some parameters.
Hi Ricardo,
Yeah, it's because of the Compound Step, so you need to access NUTS step method directly, with a dict set to a lower case version of the step method's name.
Current docs are indeed unclear about that, but @jonsedar brought nice clarifications to the docstrings in a recent PR.
Basically, post = pm.sample(500, nuts={'target_accept':0.95}) should do the trick.
Tell me if this works, and if yes I'll close 🖖
Sampling fails when I specify target_accept
Code:
Same error happens with:
If I don't specify the target_accept, it runs fine:
Full traceback:
Versions and main components
The text was updated successfully, but these errors were encountered: