sbi-dev/sbi

Saving the trained posterior.

Closed this issue · 1 comments

Is it currently possible to do save the trained posterior weights. For example, after this line

posterior = inference.build_posterior(density_estimator)

may be in torch like way. Is it currently possible to do it? I could not find in tutorials or otherwise.

Thanks.

Hi, thanks for creating the issue! The posterior can be pickled, see here.

Feel free to reopen if this does not solve your issue!
Michael