Can I come back to analyzing posterior of a model after csv's have been dropped?


I have fit a model and generated posterior predictive samples using cmdstanpy. Now that it’s done and the four csvs with samples are dropped to my computer, is there a standard practice on coming back to them later for analysis?

Is there a command to have cmdstanpy recognize them or pull them back into the environment once started back up?

I’m a newbie to cmdstanpy too. It looks like from_csv reads csv and creates a fit object.


This is correct!

Also, worth noting that by default cmdstanpy saves csv files to a temporary directory which is deleted later. You can save them in a more permanent place by either specifying an output directory during the sample() (or other method) call, or with save_csvfiles() after the fact

Here is the relevant documentation