Skip to content

DOC Ensures that homogeneity_score passes numpydoc validation #23006

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

Merged
merged 3 commits into from
Mar 31, 2022

Conversation

aj-white
Copy link
Contributor

Reference Issues/PRs

Addresses #21350

What does this implement/fix? Explain your changes.

1.Fixes the following test failures in docstring for homogeneity_score

  • GL07: Sections are in the wrong order. Correct order is: Parameters, Returns, See Also, References, Examples
  • PR08: Parameter "labels_true" description should start with a capital letter
  • PR09: Parameter "labels_true" description should finish with "."
  • PR08: Parameter "labels_pred" description should start with a capital letter
  • PR09: Parameter "labels_pred" description should finish with "."
  • RT04: Return value description should start with a capital letter
  • RT05: Return value description should finish with "."
  • SA04: Missing description for See Also "completeness_score" reference
  • SA04: Missing description for See Also "v_measure_score" reference
  1. Remove sklearn.metrics.cluster._supervised.homogeneity_score from DOCSTRING_IGNORE_LIST

Any other comments?

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @aj-white

@jeremiedbb jeremiedbb added the Quick Review For PRs that are quick to review label Mar 31, 2022
Copy link
Member

@thomasjpfan thomasjpfan left a comment

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! LGTM

@thomasjpfan thomasjpfan merged commit 4253eac into scikit-learn:main Mar 31, 2022
@aj-white aj-white deleted the numpydoc_homogeneity_score branch April 1, 2022 12:37
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Apr 6, 2022
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
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