Skip to content

DOC Add Links to plot_lof_novelty_detection example - #31405

Merged
adrinjalali merged 3 commits into
scikit-learn:mainfrom
SiyuJin-1:add-lof-novelty-doc-link
Jul 2, 2025
Merged

adrinjalali merged 3 commits into
scikit-learn:mainfrom
SiyuJin-1:add-lof-novelty-doc-link

Conversation

@SiyuJin-1

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Towards #30621.

What does this implement/fix? Explain your changes.

Added a link to the plot_lof_novelty_detection example to outlier_detection.rst. The example was already referenced via a figure target, but adding a link makes it more discoverable.

@github-actions

github-actions Bot commented May 20, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 29b732d. Link to the linter CI: here

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you, @SiyuJin-1, I think that's a good spot for the example.
A user would also get there if they clicked the image, but that's not very obvious.

I would suggest to make it all a bit shorter as in my suggestion.

Comment thread doc/modules/outlier_detection.rst Resolved
Comment thread doc/modules/outlier_detection.rst Resolved
SiyuJin-1 and others added 2 commits May 22, 2025 09:28
@SiyuJin-1

Copy link
Copy Markdown
Contributor Author

Hi @StefanieSenger, thank you very much for your helpful feedback!
I've applied the changes you recommended to make the documentation more concise and integrate the example link more naturally into the text. This format does look cleaner and more consistent with the rest of the documentation!

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @SiyuJin-1, that looks very good.

Would you have a look, @adrinjalali? or @betatim?

@adrinjalali adrinjalali left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For future reference, we usually tend to not add explicit links to examples where there's a link to their plot.

The issue is that it's not clear in the UI that the user can click on the plot to go to the example, and that's something we need to fix in general for the whole link to examples template. But since this PR is already here, I'm happy to merge.

@adrinjalali
adrinjalali merged commit 30816ac into scikit-learn:main Jul 2, 2025
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 15, 2025
@jeremiedbb jeremiedbb mentioned this pull request Jul 15, 2025
13 tasks done
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 16, 2025
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 16, 2025
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 16, 2025
jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants