Replies: 4 comments 2 replies
-
Hi @juneeybug, We currently don't support saving the model object. We do have plans to add this feature once both PyMC and Bambi standardize their workflow to save models. There might still be technical challenges to us, since we support many types of likelihoods and they are not easy to serialize. One thing you can try is pickling the model object. I think it should work out of the box. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @juneeybug, additional note on this. In principle it is never necessary to save the model object, you can simply reinstate and attach the traces from a previous run if you want to 'load' a model. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi Alex, I also have the need to "load" my previous model, as it can take 1-2 days to finish a model and I don't want to re-run a model every time I need to do additional analysis. By now, I only figured out a way to save and load inference data using arviz (to_netcdf/from_netcdf). but I notice some of the function in hssm relied on hssm calss right? Best, |
Beta Was this translation helpful? Give feedback.
-
Usually you only need the inference data object. If you want to "attach" the inference data to the model object, simply load the object with arviz, and then set |
Beta Was this translation helpful? Give feedback.
-
Once I sample the model, by running model_1.sample, is there a way to save model_1 (the HSSM object)?
Beta Was this translation helpful? Give feedback.
All reactions