Skip to content

Assessing convergence of the neural networkw with sbi #1306

Discussion options

You must be logged in to vote

Hi there! The sbi toolbox automatically performs early stopping. It will train until the validation loss does longer decrease for 20 epochs.

You can also plot the loss with:

from sbi.analysis import plot_summary

inference = NPE(prior)
_ = inference.append_simulations(theta, x).train()

plot_summary(inference)

See also here

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@paarth-dudani
Comment options

@michaeldeistler
Comment options

@paarth-dudani
Comment options

@michaeldeistler
Comment options

@paarth-dudani
Comment options

Answer selected by janfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants