Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 84ca5a5

Browse filesBrowse files
isaacknjamathomasjpfan
authored andcommitted
DOC fix early stopping description in MLP (#19818)
* Maintenance task: Moved PolynomialFeatures to _polynomial.py * Updated docstring including behaviour of neural network when early stopping is activated * Revert "Maintenance task: Moved PolynomialFeatures to _polynomial.py" This reverts commit f76df54. * reverted failing commit * Update sklearn/neural_network/_multilayer_perceptron.py Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com> * Updated doc with proposed changes * Fixed whitespace error Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent f00bc5e commit 84ca5a5
Copy full SHA for 84ca5a5

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎sklearn/neural_network/_multilayer_perceptron.py

Copy file name to clipboardExpand all lines: sklearn/neural_network/_multilayer_perceptron.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,9 @@ class MLPClassifier(ClassifierMixin, BaseMultilayerPerceptron):
825825
validation score is not improving by at least tol for
826826
``n_iter_no_change`` consecutive epochs. The split is stratified,
827827
except in a multilabel setting.
828+
If early stopping is False, then the training stops when the training
829+
loss does not improve by more than tol for n_iter_no_change consecutive
830+
passes over the training set.
828831
Only effective when solver='sgd' or 'adam'
829832
830833
validation_fraction : float, default=0.1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.