Skip to content

DOC: Link Examples for SVR, NuSVR, and SVM User Guide - #30201

Merged
OmarManzoor merged 17 commits into
scikit-learn:mainfrom
anxuanng:add-links-to-docstrings
Nov 15, 2024
Merged

OmarManzoor merged 17 commits into
scikit-learn:mainfrom
anxuanng:add-links-to-docstrings

Conversation

@anxuanng

@anxuanng anxuanng commented Nov 3, 2024 •

Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Towards #26927

What does this implement/fix? Explain your changes.

This PR adds links to relevant examples in the docstrings for SVR and NuSVR and updates the Support Vector Machines user guide to enhance discoverability and provide practical usage guidance for these estimators. The following links were added:

  • SVR and NuSVR: Linked to plot_svm_regression.py example

Related Example Files:

  • plot_model_complexity_influence.py

Any other comments?

These additions improve documentation clarity, making it easier for users to find relevant examples directly from the API documentation. Let me know if any additional adjustments are required!

@github-actions

github-actions Bot commented Nov 3, 2024 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 7ba44b9. Link to the linter CI: here

@virchan virchan 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 for the PR @lunovian! I have a few suggestions.

The example links need to be placed in the doc-strings for the relevant functions/estimators, and in the user guide where applicable. For reference, see PR #26877.

@anxuanng anxuanng changed the title DOC: Link examples for SGDClassifier, NuSVR, and GradientBoostingRegr… DOC: Link Examples for SVR, NuSVR, and SVM User Guide Nov 10, 2024
@anxuanng

Copy link
Copy Markdown
Contributor Author

@virchan Could you please review and verify the recent push? I've linked the relevant examples for SVR, NuSVR, and updated the SVM user guide accordingly. Let me know if there are any further adjustments needed!

@virchan virchan 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 for updating the PR @lunovian! I have a few additional suggestions.

Comment thread doc/modules/svm.rst Resolved
Comment thread sklearn/svm/_classes.py Resolved
Comment thread sklearn/svm/_classes.py Resolved

@anxuanng anxuanng left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove redundant lines and symbols, rewrite words in sklearn/svm/_classes.py

@anxuanng

Copy link
Copy Markdown
Contributor Author

Remove redundant lines and symbols, rewrite words in sklearn/svm/_classes.py

Somehow, the error appears in the Azure Pipeline, which I didn't touch or anything related to them. Is this just a bug, or it was my fault?

@anxuanng
anxuanng requested a review from virchan November 11, 2024 17:43

@virchan virchan 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.

So far, so good! I have a few more suggestions.

Comment thread doc/modules/svm.rst Resolved
Comment thread sklearn/svm/_classes.py Resolved
Comment thread sklearn/svm/_classes.py Resolved
@anxuanng
anxuanng requested a review from virchan November 12, 2024 15:43

@virchan virchan 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.

LGTM!

C.c. @adrinjalali.

@OmarManzoor OmarManzoor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks @lunovian

@OmarManzoor
OmarManzoor merged commit e02ee36 into scikit-learn:main Nov 15, 2024
@anxuanng

Copy link
Copy Markdown
Contributor Author

Thank you @virchan and @OmarManzoor for supporting me with this. As a newbie, I truly appreciate the opportunity to learn new things.

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