Here you can find a Jupyter Notebook that shows the problem:
Dear users,
I run an HDDM on the cluster of my University and saved it with the hddm.save() function. I passed to this function a string in the form of "directory/mymodel".
I checked on the cluster and everything was there as I expected: I successfully fitted the model and saved it in its destination folder (i.e., the "directory" in bold above), exported my CSV files, etc. All the outputs seemed fine.
After this, I moved all the files to a local machine... I wanted to continue my analyses on a Jupyter Notebook because the cluster only works via terminal and I can't plot the posteriors there.
Unfortunately, I couldn't load my model and got this error:
FileNotFoundError: [Errno 2] No such file or directory: '/MRIWork/MRIWork08/mt/valerio_villani/hddm-weapon-kobe/cardiac-wit/data/saved-models/model__HDDMRegr_heart-2-params_m04.db'
I believe this has something to do with relative paths and the fact that I saved my model with hddm.save("directory/mymodel").
In light of this, is there a way for me to load my model with hddm.load() or the pickle library at all?
The model took 8 days to fit and I hope I could use the files I saved instead of re-running it from scratch...
Thank you very much for your time and attention, I look forward to hearing from you.
All the best,
Valerio.