I got an error "'NoneType' object has no attribute 'reset_counters'"

Hi:

When I use TransportMaps for hidden Markov model, I got an error "AttributeError: 'NoneType' object has no attribute 'reset_counters'" when I run  push_R0_rho.minimize_kl_divergence(). The thing is that if all the observations are not missing value, then the error didn't appear. But when the observation has some missing value, for example, y[1] = None, then the error occur. Where is the problem?

Hi, sorry for the long delay. Let me try to reproduce the problem. Are you working on any example provided with the software or your own?

I just run step by step the code provided here with TransportMaps version 2.0b2 and it works also with missing observations.

Please let me know which version you are using and a minimum working example.

Thanks.

answered Feb 9 by (267 points)
edited Feb 9 by dabi

Hi:

Thanks for the help. I'm using version2.0b2. I also run the code in tutorial "Sequential inference via low-dimensional couplings", but I set y[1]=none. Then I get the error " AttributeError: 'NoneType' " when running

push_R0_rho.minimize_kl_divergence(
pull_Q_pi0, qtype=qtype, qparams=qparams,
tol=tol, ders=ders)
for pushing forward N(0,I) to the first Markov component.
Thanks a lot for the help!