Skip to content

sample_smc conversion of sample stats to idata can result in warning #7821

Open
@ricardoV94

Description

@ricardoV94

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:

pymc/pymc/smc/sampling.py

Lines 266 to 270 in cc90212

sample_stats = dict_to_dataset(
sample_stats_dict,
attrs=sample_settings_dict,
library=pymc,
)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions