-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC Ensures that get_data_home passes numpydoc validation #22259
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 get_data_home passes numpydoc validation #22259
Conversation
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 the PR @purnachandramansingh. This LGTM!
I left a suggestion about the return description.
Also, I think it would be nice if we replace "dir" with "directory" in the docstrings.
sklearn/datasets/_base.py
Outdated
Returns | ||
------- | ||
data_home: str | ||
The path of the scikit-learn data dir. |
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.
The path of the scikit-learn data dir. | |
Path of the scikit-learn data directory. |
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.
Based on the other docstrings, I guess we can unintended the text a bit and keep it verbose, like what @jmloyola proposes.
The path of the scikit-learn data dir. | |
The path of the scikit-learn data directory. |
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.
LGTM after addressing the main thread.
sklearn/datasets/_base.py
Outdated
Returns | ||
------- | ||
data_home: str | ||
The path of the scikit-learn data dir. |
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.
Based on the other docstrings, I guess we can unintended the text a bit and keep it verbose, like what @jmloyola proposes.
The path of the scikit-learn data dir. | |
The path of the scikit-learn data directory. |
I am confused about whether to do these changes or not.
|
LGTM |
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.
LGTM. just one comment for consistency.
Co-authored-by: Julien Jerphanion <[email protected]>
Thank you so much @jjerphan |
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.
LGTM
Thanks @thomasjpfan |
Reference Issues/PRs
Addresses #21350
What does this implement/fix? Explain your changes.
This PR fixes the following error that was appearing for numpydoc validation for sklearn.datasets._base.get_data_home
Any other comments?
Thanks