What is the standard way to halt a script when it has converged?

what is the standard way to detect if a model has converged. I was going to record 5 losses with 95 confidence intervals and if they all agreed then I’d halt the script. I assume this must be implemented already in pytorch or pytorch lightning somewhere. I don’t need a perfect solution just the standard way to do this automatically halt when converged.

ref:

hey @Brando_Miranda

you might want to checkout EarlyStopping.

Also, we have moved the discussions to GitHub Discussions. You might want to check that out instead to get a quick response. The forums will be marked read-only soon.

Thank you