Skip to content

DOC add links to neural network examples #26935

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
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion doc/modules/neural_networks_supervised.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ See the examples below and the docstring of
.. topic:: Examples:

* :ref:`sphx_glr_auto_examples_neural_networks_plot_mlp_training_curves.py`
* :ref:`sphx_glr_auto_examples_neural_networks_plot_mnist_filters.py`
* See :ref:`sphx_glr_auto_examples_neural_networks_plot_mnist_filters.py` for
visualized representation of trained weights.

Regression
==========
Expand Down
9 changes: 9 additions & 0 deletions sklearn/neural_network/_multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,9 @@ class MLPClassifier(ClassifierMixin, BaseMultilayerPerceptron):
- 'adam' refers to a stochastic gradient-based optimizer proposed
by Kingma, Diederik, and Jimmy Ba

For a comparison between Adam optimizer and SGD, see
:ref:`sphx_glr_auto_examples_neural_networks_plot_mlp_training_curves.py`.

Note: The default solver 'adam' works pretty well on relatively
large datasets (with thousands of training samples or more) in terms of
both training time and validation score.
Expand All @@ -810,6 +813,9 @@ class MLPClassifier(ClassifierMixin, BaseMultilayerPerceptron):
Strength of the L2 regularization term. The L2 regularization term
is divided by the sample size when added to the loss.

For an example usage and visualization of varying regularization, see
:ref:`sphx_glr_auto_examples_neural_networks_plot_mlp_alpha.py`.

batch_size : int, default='auto'
Size of minibatches for stochastic optimizers.
If the solver is 'lbfgs', the classifier will not use minibatch.
Expand Down Expand Up @@ -1293,6 +1299,9 @@ class MLPRegressor(RegressorMixin, BaseMultilayerPerceptron):
- 'adam' refers to a stochastic gradient-based optimizer proposed by
Kingma, Diederik, and Jimmy Ba

For a comparison between Adam optimizer and SGD, see
:ref:`sphx_glr_auto_examples_neural_networks_plot_mlp_training_curves.py`.

Note: The default solver 'adam' works pretty well on relatively
large datasets (with thousands of training samples or more) in terms of
both training time and validation score.
Expand Down
3 changes: 3 additions & 0 deletions sklearn/neural_network/_rbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class BernoulliRBM(ClassNamePrefixFeaturesOutMixin, TransformerMixin, BaseEstima
>>> model = BernoulliRBM(n_components=2)
>>> model.fit(X)
BernoulliRBM(n_components=2)

For a more detailed example usage, see
:ref:`sphx_glr_auto_examples_neural_networks_plot_rbm_logistic_classification.py`.
"""

_parameter_constraints: dict = {
Expand Down