-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Linked examples for LDA and QDA in their docstrings (#26927) #28611
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 Linked examples for LDA and QDA in their docstrings (#26927) #28611
Conversation
sklearn/discriminant_analysis.py
Outdated
@@ -222,6 +226,9 @@ class LinearDiscriminantAnalysis( | |||
This should be left to None if `covariance_estimator` is used. | |||
Note that shrinkage works only with 'lsqr' and 'eigen' solvers. | |||
|
|||
For an example usage, see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For an example usage, see | |
For a usage example, see |
I'd rewrite this like this
sklearn/discriminant_analysis.py
Outdated
@@ -232,6 +239,9 @@ class LinearDiscriminantAnalysis( | |||
min(n_classes - 1, n_features). This parameter only affects the | |||
`transform` method. | |||
|
|||
For an example usage for dimensionality reduction, see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For an example usage for dimensionality reduction, see | |
For a usage example, see |
I'd rewrite this like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping make the examples easier to find!
Looks good to me, besides the two suggestions I made.
Thank you for the feedback. I've made the updates. |
Reference Issues/PRs
Adds links to examples/classification mentioned in #26927
What does this implement/fix? Explain your changes.
Adds links to auto-generated examples for classes
LinearDiscriminantAnalysis
andQuadraticDiscriminantAnalysis
Any other comments?
Examples linked:
examples/classification
plot_lda.py
plot_lda_qda.py
examples/decomposition
plot_pca_vs_lda.py