Added documentation reference to plot_segmentation_toy.py to spectral.py#30978
Added documentation reference to plot_segmentation_toy.py to spectral.py#30978tassonem wants to merge 1 commit intoscikit-learn:mainfrom
Conversation
StefanieSenger
left a comment
There was a problem hiding this comment.
Hello @tassonem,
thanks for opening this PR for adding the link. The linked example seems a rather special use case to me and as such I would not put it into the more general model description right on top.
I am also not so sure it this need so be linked at all. (Do you have an opinion on that, @adrinjalali?) If so, then I would suggest to put it in the end of the Examples section starting in line 590.
Please be aware that adding two empty lines caused the docstring-test to break, which is this output from the CI. So while you move the link below, please only add one empty line.
Thanks for your effort!
| :ref:`sphx_glr_auto_examples_cluster_plot_segmentation_toy.py` | ||
|
|
There was a problem hiding this comment.
| :ref:`sphx_glr_auto_examples_cluster_plot_segmentation_toy.py` | |
| :ref:`sphx_glr_auto_examples_cluster_plot_segmentation_toy.py`. |
Also, please delete one of the empty lines below. It causes one of the CI tests to fail.
|
I agree with @StefanieSenger here that it doesn't feel like we need a link to this example, and the user guide already links to it nicely. Thanks for your contribution @tassonem , and sorry that this one didn't get merged. |
Reference Issues/PRs
Adds links to examples/cluster mentioned in #30621
What does this implement/fix? Explain your changes.
This PR improves the SpectralClustering documentation by adding a reference to plot_segmentation_toy.py, which demonstrates the application of Spectral Clustering in image segmentation using normalized cuts.
Any other comments?
Examples linked:
examples/cluster
plot_segmentation_toy.p