Skip to content

DOC Update attribute docstrings in _multilayer_perceptron.py #19595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions sklearn/neural_network/_multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ class MLPClassifier(ClassifierMixin, BaseMultilayerPerceptron):
layer i + 1.

n_iter_ : int
The number of iterations the solver has ran.
The number of iterations the solver has run.

n_layers_ : int
Number of layers.
Expand Down Expand Up @@ -1292,10 +1292,13 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
The minimum loss reached by the solver throughout fitting.

loss_curve_ : list of shape (`n_iter_`,)
Loss value evaluated at the end of each training step.
The ith element in the list represents the loss at the ith iteration.

t_ : int
The number of training samples seen by the solver during fitting.
Mathematically equals `n_iters * X.shape[0]`, it means
`time_step` and it is used by optimizer's learning rate scheduler.

coefs_ : list of shape (n_layers - 1,)
The ith element in the list represents the weight matrix corresponding
Expand All @@ -1306,7 +1309,7 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
layer i + 1.

n_iter_ : int
The number of iterations the solver has ran.
The number of iterations the solver has run.

n_layers_ : int
Number of layers.
Expand All @@ -1317,13 +1320,6 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
out_activation_ : str
Name of the output activation function.

loss_curve_ : list of shape (n_iters,)
Loss value evaluated at the end of each training step.

t_ : int
Mathematically equals `n_iters * X.shape[0]`, it means
`time_step` and it is used by optimizer's learning rate scheduler.

Examples
--------
>>> from sklearn.neural_network import MLPRegressor
Expand Down