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

Skip to content

DOC Ensures that sklearn.utils.validation.has_fit_parameter passes numpydoc validation #21471

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

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
37cb07e
adding example
reshamas Jul 26, 2021
3d0a3ce
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Jul 26, 2021
bcd869e
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Jul 30, 2021
09ee884
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Aug 2, 2021
71ad4e3
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Aug 8, 2021
a48493b
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Aug 9, 2021
fcf49d8
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Aug 20, 2021
5cb0ed3
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Aug 29, 2021
b2d0720
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Sep 1, 2021
42aebe0
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Oct 4, 2021
9bfbdd2
Merge branch 'main' of github.com:scikit-learn/scikit-learn into main
reshamas Oct 26, 2021
a1e3a17
fixing formatting
reshamas Oct 26, 2021
d8147a2
fix compose.rst
reshamas Oct 26, 2021
808f3e9
Merge branch 'main' of github.com:scikit-learn/scikit-learn into np_v…
reshamas Oct 27, 2021
487fe82
put is_fitted in backticks
reshamas Oct 27, 2021
8bd3854
remove leading whitespace
reshamas Oct 27, 2021
fc6f4b5
Merge branch 'np_v_has_fit_parameter' of https://github.com/reshamas/…
reshamas Oct 27, 2021
58c0e70
Merge branch 'main' of github.com:scikit-learn/scikit-learn into np_v…
reshamas Oct 28, 2021
e017c2e
Merge branch 'main' of github.com:scikit-learn/scikit-learn into np_v…
reshamas Oct 31, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
"sklearn.utils.validation.check_memory",
"sklearn.utils.validation.check_random_state",
"sklearn.utils.validation.column_or_1d",
"sklearn.utils.validation.has_fit_parameter",
# "sklearn.utils.validation.has_fit_parameter",
Copy link
Member

Choose a reason for hiding this comment

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

It seems that you changed more than just this function. You might want to uncomment all the functions that you modified to be sure that there is not other problem

Copy link
Member Author

Choose a reason for hiding this comment

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

@glemaitre I thought that when I changed this file, it was only related to one function. But, now I see it's all those functions in one file. But, I didn't run the pytest on those other functions, I only fixed putting backticks on the parameters.
Also, sometimes I don't know where the error is (what line number), so I believe what I do is make the change in a function until the error goes away.

I can work on the other 6 functions within validation, but in separate PRs, because I just ran pytest against the others and there are still errors which need to be fixed separate for each of them.

Copy link
Member

Choose a reason for hiding this comment

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

OK fine with me. The thing is that you could have delayed the change with the backtick for the other PRs as well. Like this, the scope of the changes is really limited to a single place.

Copy link
Member Author

Choose a reason for hiding this comment

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

I will keep that in mind for the future. :)

Copy link
Member

Choose a reason for hiding this comment

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

To avoid introducing confusing unnecessary merge conflicts with other concurrent PRs by first time contributors also working on #21350, I would rather have PRs only focused on a specific function at a time.

Copy link
Member

Choose a reason for hiding this comment

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

@reshamas I guess what @ogrisel is asking, is to revert the changes which are not related to the function you're directly addressing in this PR, and to open a separate PR for them, which I agree with, especially if it helps with fewer merge conflicts with other PRs.

Could you elaborate what the output you see is, so that we could maybe help you find the relevant places to fix?

]
FUNCTION_DOCSTRING_IGNORE_LIST = set(FUNCTION_DOCSTRING_IGNORE_LIST)

Expand Down
Loading