Assessing convergence of the neural networkw with sbi #1306
Answered
by
michaeldeistler
paarth-dudani
asked this question in
Q&A
-
Can I get some suggestions as to how I can evaluate whether the neural network training has converged? One idea that comes to my mind it to output the loss function and view how it changes with time. How do I do that in the case of NPE_C, NRE_B and NLE inference estimators? |
Beta Was this translation helpful? Give feedback.
Answered by
michaeldeistler
Nov 22, 2024
Replies: 1 comment 5 replies
-
Hi there! The 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 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
janfb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
See also here