Skip to content

Add links to examples from the docstrings and user guides #26927

Closed

Description

@adrinjalali

We have a rich set of examples covering a very broad range of issues, but they're not necessarily easily discoverable via the section on the bottom of the API pages.

This meta-issue is to keep track of the examples for which we've already included links in the docs, and to fix the rest.

An example of how to include links to examples in API docs and the user guide can be found here: #26926 . Please see how it can be done before claiming an example.

For each example, please check if it's already included in the docs, either user guides or API docs, and if not, claim it by leaving a comment at the bottom of this issue and open a pull request for it. You can open one PR for more than one example if they're very related.

Note that not all examples need to be included in this project. For instance, if an example is only a usage example, and putting a link to it doesn't add much for the users, then we can ignore it (please do leave a comment if this is your finding). Also, not all examples are in a good shape, and in your PR you can also improve the example itself.

How to create a link to an example?
To create a link to the example examples/developing_estimators/sklearn_is_fitted.py, you can write:

:ref:`sphx_glr_auto_examples_developing_estimators_sklearn_is_fitted.py`

which would automatically create the link. Notice the pattern where slashes (/) are converted to an underscore (_) and the sphx_glr_auto_ prefix.

IMPORTANT: Please limit your pull requests to a limited scope, single or two classes, or a single example so that it can be reviewed easily.

Here's a list of all examples:

Activity

  1. added
    Needs Triage
    on Jul 28, 2023
  2. added
    good first issue
    Meta-issue
    and removed
    Needs Triage
    good first issue
    on Jul 28, 2023
  3. StefanieSenger commented on Jul 28, 2023

    @StefanieSenger
    Member

    PR #26904 (DOC Add links to pipelines examples in docstrings) takes care of

    examples/compose:

    plot_column_transformer_mixed_types.py
    plot_column_transformer.py
    plot_compare_reduction.py
    plot_digits_pipe.py
    plot_feature_union.py
    plot_transformed_target.py

  4. StefanieSenger commented on Jul 28, 2023

    @StefanieSenger
    Member

    PR #26877 (DOC Add links to preprocessing examples in docstrings and userguide) takes care of

    examples/preprocessing:

    plot_all_scaling.py
    plot_discretization_classification.py
    plot_discretization.py
    plot_discretization_strategies.py
    plot_map_data_to_normal.py
    plot_scaling_importance.py
    plot_target_encoder_cross_val.py
    plot_target_encoder.py

  5. mmhamdy commented on Jul 29, 2023

    @mmhamdy
    Contributor

    PR DOC Add links to decomposition examples in docstrings and user guide adds examples/decomposition:

    • plot_faces_decomposition.py
    • plot_ica_blind_source_separation.py
    • plot_ica_vs_pca.py
    • plot_image_denoising.py
    • plot_incremental_pca.py
    • plot_kernel_pca.py
    • plot_pca_3d.py
    • plot_pca_iris.py
    • plot_pca_vs_fa_model_selection.py
    • plot_pca_vs_lda.py
    • plot_sparse_coding.py
    • plot_varimax_fa.py

    Other examples that are related to decomposition but found in different sections that were linked here:

    examples/applications:

    • plot_digits_denoising.py
    • plot_topics_extraction_with_nmf_lda.py

    examples/compose:

    • plot_compare_reduction.py

    examples/release_highlights:

    • plot_release_highlights_1_1_0.py
  6. punndcoder28 commented on Jul 29, 2023

    @punndcoder28
    Contributor

    PR #26934 adds links for examples/cross_decomposition, PR #26935 adds links for examples/neural_networks

  7. Shreesha3112 commented on Jul 30, 2023

    @Shreesha3112
    Contributor

    Working on examples/feature_selection

    PR: #26950

    Class: feature_selection.RFE

    Related Example files:

  8. adrinjalali commented on Jul 31, 2023

    @adrinjalali
    MemberAuthor

    @Shreesha3112 please list files for which you're working on, and only focus on a single class for each PR.

  9. Shreesha3112 commented on Jul 31, 2023

    @Shreesha3112
    Contributor

    @adrinjalali Added Class and its related example files

  10. scaja commented on Aug 1, 2023

    @scaja
    Contributor

    I'm working on plot_cyclical_feature_engineering

  11. 120 remaining items

  12. stefanogaspari commented on Dec 13, 2024

    @stefanogaspari
    Contributor

    Worked on examples/covariance/plot_lw_vs_oas.py. PR #30577

  13. mohsina-bilal commented on Dec 22, 2024

    @mohsina-bilal

    Working on examples/classification/plot_classification_probability.py

  14. StefanieSenger commented on Dec 23, 2024

    @StefanieSenger
    Member

    Hi @mohsina-bilal, plot_classification_probability has already been done and merged. Please select another example to link.

  15. ani0075saha commented on Dec 27, 2024

    @ani0075saha
    Contributor

    Working on examples/semi_supervised

    plot_label_propagation_digits_active_learning.py
    plot_label_propagation_digits.py
    plot_label_propagation_structure.py
    
  16. ani0075saha commented on Dec 27, 2024

    @ani0075saha
    Contributor

    @adrinjalali

    Some links in your first post description are outdated because the examples do not exist in the repo anymore. Do you think it's helpful to edit the description so that newcomers do not go searching for them? You could still choose to still keep the ones which have associated merged pull requests for completeness.

    e.g.,

    (1) In examples/datasets

       plot_digits_last_image.py 
       plot_iris_dataset.py 
       plot_random_dataset.py 
    

    files do not exist.

    (2) The examples/exercises directory doesn't exist anymore.

    If I find more non-existent files, I will add it in the comments.

  17. adrinjalali commented on Jan 2, 2025

    @adrinjalali
    MemberAuthor

    Thanks @ani0075saha , updated the list.

  18. marouaneaka commented on Jan 5, 2025

    @marouaneaka

    Hi, i will be working on _examples/linear_model:_plot_lasso_and_elasticnet.py

  19. marouaneaka commented on Jan 5, 2025

    @marouaneaka

    Hi, i will be working on _examples/linear_model:_plot_lasso_and_elasticnet.py

    sorry about the closed pull requests had a problem with white spaces again ;)

  20. stefanogaspari commented on Jan 5, 2025

    @stefanogaspari
    Contributor

    Working on examples/covariance/plot_mahalanobis_distances.py

  21. cbohnert67 commented on Jan 9, 2025

    @cbohnert67

    Hi, I would like to work on examples/classification/plot_classifier_comparison.py.

    Not sure if putting the example in 12. Choosing the right estimator of user guide would help users choosing a classifier. Any idea ?

  22. StefanieSenger commented on Jan 10, 2025

    @StefanieSenger
    Member

    Hi @cbohnert67, that sounds like a great idea. 👍 Go for it.

  23. StefanieSenger commented on Jan 10, 2025

    @StefanieSenger
    Member

    We are providing a new issue for keep track of the progress in this issue.

    See the new Add links to examples from the docstrings and user guide #30621.

    Please from now on, refer to the new issue.

  24. adrinjalali commented on Jan 10, 2025

    @adrinjalali
    MemberAuthor

    wow, thank you @StefanieSenger ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DocumentationMeta-issueSprintgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions