Skip to content

Error in Saving model objects for HDDMrl: 'Cannot pickle pymc.LazyFunction.Counter' Object #22

@oneyearmoreone

Description

@oneyearmoreone

When using the hddm.Hrl or hddm.RLDDM models and attempting to save the ProMCMC chain data, users may encounter the error: "fail to save model: cannot pickle 'pymc.LazyFunction.Counter' object". This issue arises due to the inability of Python's pickle module to serialize certain PyMC objects, specifically the LazyFunction.Counter. This post discusses potential workarounds and solutions to resolve the problem and successfully save the MCMC chain data.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions