Hi there,
I'm struggling to save models using the Hrl package, I'm generating the model as follows:
m_rl = hddm.Hrl(data, dual=True, depends_on={'v':'dbs', 'pos_alpha':'dbs', 'alpha':'dbs'})
m_rl.sample(5000,burn=500, dbname='traces.db', db='pickle')
m_rl.print_stats()
and then I try to save using:
m_rl.save('HRL_MODEL')
however, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sallen\anaconda3\envs\HDDM3.6\lib\site-packages\kabuki\hierarchical.py", line 412, in save
pickle.dump(self, open(fname, 'wb'))
AttributeError: Can't pickle local object 'new_dist_class.<locals>.new_class'
Greatly appreciate any help,
Seth