Skip to content

DOC Ensures that haversine_distances passes numpydoc validation#23044

Merged
jeremiedbb merged 3 commits intoscikit-learn:mainfrom
gustavo-ren:issue-21350-haversine_distances
Apr 8, 2022
Merged

DOC Ensures that haversine_distances passes numpydoc validation#23044
jeremiedbb merged 3 commits intoscikit-learn:mainfrom
gustavo-ren:issue-21350-haversine_distances

Conversation

@gustavo-ren
Copy link
Copy Markdown
Contributor

Addresses #21350

Reference Issues/PRs

Modifications on metrics.pairwise.haversine_distance for docstring acceptance by the numpydoc criteria.

What does this implement/fix? Explain your changes.

Remove sklearn.metrics.pairwise.haversine_distances from test_doctrings.py FUNCTION_DOCSTRING_IGNORE_LIST
Necessary modifications for the resolution of errors:
- PR07: Parameter "X" has no description
- RT03: Return value has no description

Any other comments?

No

Copy link
Copy Markdown
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.

Thanks for the PR @gustavo-ren. I made a few suggestions to follow keep local consistency.

@jeremiedbb jeremiedbb added No Changelog Needed Quick Review For PRs that are quick to review labels Apr 4, 2022
@gustavo-ren gustavo-ren changed the title DOC Ensures that config_context passes numpydoc validation DOC Ensures that haversine_distance passes numpydoc validation Apr 4, 2022
gustavo-ren and others added 2 commits April 8, 2022 09:01
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
Copy link
Copy Markdown
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 @gustavo-ren

@jeremiedbb jeremiedbb merged commit aebd9f6 into scikit-learn:main Apr 8, 2022
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Apr 29, 2022
…t-learn#23044)

Co-authored-by: Jérémie du Boisberranger <34657725+jeremiedbb@users.noreply.github.com>
@thomasjpfan thomasjpfan changed the title DOC Ensures that haversine_distance passes numpydoc validation DOC Ensures that haversine_distances passes numpydoc validation Jul 16, 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.

2 participants