All posts

Avoid Overfitting in Machine Learning

Using the EarlyStopping callback, Lightning will automatically stop training once a specific metric has stopped improving.

Lightning EarlyStopping Callback

Using the EarlyStopping callback, Lightning will automatically stop training once a specific metric has stopped improving. This helps you avoid overfitting.

The default behavior is that EarlyStopping will happen once there hasn’t been an improvement in 3 evaluations. You can change this using the patience value.

Watch the video to learn more.

Interested in building with Lightning?

Tell us what you need and we’ll reach out.

  • See a demo on workloads like yours
  • Get GPU pricing and capacity
  • Review security and compliance

Trusted by 450,000+ devs and AI teams

NVIDIACursorCiscoRunwaySupercellstability.aiBlack Forest Labs

You can also email us at [email protected]