Closed Ziaeemehr closed 2 months ago
Suppose common steps in the sbi workflow
inference = SNPE( prior=prior, density_estimator=density_estimator, device=device) inference = inference.append_simulations(theta, x) estimator_ = inference.train() posterior = inference.build_posterior(estimator_, sample_with="mcmc") # probably need to make a change here? posterior.sample((num_samples,), x=xo)
This is needed specially when someone is putting the workflow in a loop and try on multiple dataset.
Cheers A
I don't understand the problem, why do you pass sample_with=mcmc if you do not want to sample with mcmc?
sample_with=mcmc
Suppose common steps in the sbi workflow
This is needed specially when someone is putting the workflow in a loop and try on multiple dataset.
Cheers A