Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

genvalen
Copy link
Contributor

@genvalen genvalen commented Sep 9, 2021

Reference Issues/PRs

Addresses #20308

What does this implement/fix? Explain your changes.

This PR ensures LabelPropogation is compatible with numpydoc:

  • Remove LabelPropogation from DOCSTRING_IGNORE_LIST.
  • Verify that all tests are passing.
  • Change docstrings to maintain consistency.

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

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.
@genvalen genvalen changed the title [WIP] DOC Ensures that LabelPropagation passes numpydoc validation DOC Ensures that LabelPropagation passes numpydoc validation Sep 23, 2021
@genvalen genvalen marked this pull request as ready for review September 23, 2021 20:48
n_iter_ : int
Number of iterations run.
LabelPropagation(...)
Copy link
Member

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.

Copy link
Contributor Author

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.

@glemaitre glemaitre self-requested a review October 21, 2021 09:26
@glemaitre glemaitre merged commit 31ba67a into scikit-learn:main Oct 21, 2021
@glemaitre
Copy link
Member

Thanks @genvalen All good.

@glemaitre glemaitre mentioned this pull request Oct 23, 2021
10 tasks
glemaitre added a commit to glemaitre/scikit-learn that referenced this pull request Oct 23, 2021
glemaitre added a commit that referenced this pull request Oct 25, 2021
@genvalen genvalen deleted the LabelPropagation-numpydoc branch October 26, 2021 05:24
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
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