Skip to content
Quantoros

With earlystopping=True, does SGD stop by watching the full training objective?

Classic MLLevel: IntermediateValidation stopping criterion

With early_stopping=True, does SGD stop by watching the full training objective?

Hints
  • Identify which data supplies the stopping signal.
  • score and training loss need not be the same quantity.

Answer

It reserves validation_fraction and watches the estimator's validation score. With early stopping disabled, convergence monitoring instead uses the training objective; these are different criteria.

Source and licence: scikit-learn 1.7.2 — sgd · BSD-3-Clause · answer: Quantoros editorial

Related questions