pymc icon indicating copy to clipboard operation
pymc copied to clipboard

sample_smc conversion of sample stats to idata can result in warning

Open ricardoV94 opened this issue 5 months ago • 3 comments

Description

Sometimes we have less sample stats than chains with SMC (the concept of draws is hacked a bit), and this line here will trigger an arviz warning: https://github.com/pymc-devs/pymc/blob/cc902124ed08fe8c3007699451cc0c16f38520d2/pymc/smc/sampling.py#L266-L270

Reported by an user in https://discourse.pymc.io/t/incorrect-number-of-draws-in-smc-example/17119/2

We should suppress that warning, (perhaps in all internal uses of dict_do_dataset by PyMC)?

CC @aloctavodia @OriolAbril

ricardoV94 avatar Jun 19 '25 09:06 ricardoV94