lanl / SEPIA

Simulation-Enabled Prediction, Inference, and Analysis: physics-informed statistical learning.
Other
29 stars 6 forks source link

incremental saving of MCMC samples #6

Closed natalieklein229 closed 4 years ago

natalieklein229 commented 4 years ago

For now, you can save in a loop:

for i in range(10): model.do_mcmc(1000) with open('model_pickle.pkl', 'wb' as f): pickle.dump(model, f)