Skip to content
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

DOC Fix dropdown-related warnings #27418

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 13 additions & 8 deletions doc/modules/compose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,19 @@ permitted). This is convenient for performing only some of the transformations

.. _pipeline_nested_parameters:

|details-start|
**Nested parameters**
|details-split|
Nested parameters
Copy link
Member

@glemaitre glemaitre Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section is actually looking weird. I don't think we should have collapsed any of the information.

Right now, we don't have an example in the documentation that show how to make a pipeline at a first glance.

.................

Parameters of the estimators in the pipeline can be accessed using the
``<estimator>__<parameter>`` syntax::

>>> pipe.set_params(clf__C=10)
Pipeline(steps=[('reduce_dim', PCA()), ('clf', SVC(C=10))])

|details-start|
**More info on nested parameters**
|details-split|

This is particularly important for doing grid searches::

>>> from sklearn.model_selection import GridSearchCV
Expand Down Expand Up @@ -174,6 +177,13 @@ You can also provide custom feature names for the input data using
>>> pipe[:-1].get_feature_names_out(iris.feature_names)
array(['petal length (cm)', 'petal width (cm)'], ...)

.. topic:: See Also:

* :ref:`composite_grid_search`

|details-end|


.. topic:: Examples:

* :ref:`sphx_glr_auto_examples_feature_selection_plot_feature_selection_pipeline.py`
Expand All @@ -184,11 +194,6 @@ You can also provide custom feature names for the input data using
* :ref:`sphx_glr_auto_examples_compose_plot_compare_reduction.py`
* :ref:`sphx_glr_auto_examples_miscellaneous_plot_pipeline_display.py`

.. topic:: See Also:

* :ref:`composite_grid_search`

|details-end|

.. _pipeline_cache:

Expand Down
9 changes: 3 additions & 6 deletions doc/modules/feature_extraction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ it is advisable to use a power of two as the ``n_features`` parameter;
otherwise the features will not be mapped evenly to the columns.

.. topic:: References:

* `MurmurHash3 <https://github.com/aappleby/smhasher>`_.

|details-end|
Expand Down Expand Up @@ -398,9 +398,8 @@ last document::

.. _stop_words:

|details-start|
**Using stop words**
|details-split|
Using stop words
----------------

Stop words are words like "and", "the", "him", which are presumed to be
uninformative in representing the content of a text, and which may be
Expand Down Expand Up @@ -431,8 +430,6 @@ identify and warn about some kinds of inconsistencies.
In *Proc. Workshop for NLP Open Source Software*.


|details-end|

.. _tfidf:

Tf–idf term weighting
Expand Down