-
-
Notifications
You must be signed in to change notification settings - Fork 26.3k
DOC Ensures that LabelPropagation passes numpydoc validation #20991
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 Ensures that LabelPropagation passes numpydoc validation #20991
Conversation
This change was added while working on LabelPropogation's numpydoc validation tests because the fit method for this class had a GL08 error (missing docstring), requiring me to look at BaseLabelPropogation's fit dcostring for reference.
…nto LabelPropagation-numpydoc
…nto LabelPropagation-numpydoc
n_iter_ : int | ||
Number of iterations run. | ||
LabelPropagation(...) |
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.
This line corresponds to the Examples
section. It is the output of the fit
method.
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.
@jmloyola thank you for catching that! I will update.
…diting section order
…nto LabelPropagation-numpydoc
Thanks @genvalen All good. |
…learn#20991) Co-authored-by: Guillaume Lemaitre <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
…learn#20991) Co-authored-by: Guillaume Lemaitre <[email protected]>
Reference Issues/PRs
Addresses #20308
What does this implement/fix? Explain your changes.
This PR ensures LabelPropogation is compatible with numpydoc:
LabelPropogation
from DOCSTRING_IGNORE_LIST.Any other comments?
I also edited the summary of the docstring of
BaseLabelPropogation
's fit method to improve readability.I used the glossary definition of
semisupervised learning
for guidance.Link to glossary: https://scikit-learn.org/stable/glossary.html