Closed theideasmith closed 7 years ago
Hey, sorry for the long delay. You've likely figured this out yourself, but I wasn't able to reproduce the error. I ran this file using the current master branches of pyhsmm (fb19602), pybasicbayes (f2d3d92), and autoregressive (be4791c).
In the future, it will probably be easier to work together on debugging things if you provide a complete runnable script (either inline or in a gist) and the commits of the relevant projects you're using (which you can check with git rev-parse --short HEAD
).
By the way, reduced
isn't in the argument list to genmodel_empirical_estimator
, so your code is likely reading a module-level variable there. It might be preferable to pass that in as an explicit argument to the function.
Ah, maybe you meant to add a model.copy_sample()
at the end. In that case, the answer is just that copy_sample
isn't implemented for the UniformInitialState
class, which is the default that gets instantiated when no other initial state distribution is specified in the call to the model init method.
I just pushed an attempt at a fix. However, I'm not super familiar with this code anymore, and there was a funny circular dependence between the model and the initial state instance, so maybe double-check this code.
Hi Matt,
I'm using pyhsmm to model the behavior of C Elegans.
I was hoping you'd be able to comment on why, when I try to copy a
m.ARWeakLimitStickyHDPHMM
I get the errorUniformInitialState’ object has no attribute ‘copy_sample’
?If it helps, I am using Scott's method:
and generating a model using
Finally