Skip to content

Commit efd42f1

Browse files
Shooter23thomasjpfan
authored andcommitted
DOC Update attribute docstrings in _multilayer_perceptron.py (#19595)
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent 070bb3d commit efd42f1

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

sklearn/neural_network/_multilayer_perceptron.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ class MLPClassifier(ClassifierMixin, BaseMultilayerPerceptron):
884884
layer i + 1.
885885
886886
n_iter_ : int
887-
The number of iterations the solver has ran.
887+
The number of iterations the solver has run.
888888
889889
n_layers_ : int
890890
Number of layers.
@@ -1292,10 +1292,13 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
12921292
The minimum loss reached by the solver throughout fitting.
12931293
12941294
loss_curve_ : list of shape (`n_iter_`,)
1295+
Loss value evaluated at the end of each training step.
12951296
The ith element in the list represents the loss at the ith iteration.
12961297
12971298
t_ : int
12981299
The number of training samples seen by the solver during fitting.
1300+
Mathematically equals `n_iters * X.shape[0]`, it means
1301+
`time_step` and it is used by optimizer's learning rate scheduler.
12991302
13001303
coefs_ : list of shape (n_layers - 1,)
13011304
The ith element in the list represents the weight matrix corresponding
@@ -1306,7 +1309,7 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
13061309
layer i + 1.
13071310
13081311
n_iter_ : int
1309-
The number of iterations the solver has ran.
1312+
The number of iterations the solver has run.
13101313
13111314
n_layers_ : int
13121315
Number of layers.
@@ -1317,13 +1320,6 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
13171320
out_activation_ : str
13181321
Name of the output activation function.
13191322
1320-
loss_curve_ : list of shape (n_iters,)
1321-
Loss value evaluated at the end of each training step.
1322-
1323-
t_ : int
1324-
Mathematically equals `n_iters * X.shape[0]`, it means
1325-
`time_step` and it is used by optimizer's learning rate scheduler.
1326-
13271323
Examples
13281324
--------
13291325
>>> from sklearn.neural_network import MLPRegressor

0 commit comments

Comments
 (0)