Repository navigation
DOC: clarify verbose behavior in GridSearchCV and RandomizedSearchCV - #32968
StefanieSenger merged 7 commits into
Conversation
|
This PR only updates documentation. The CI failures appear unrelated to the changes here. |
StefanieSenger
left a comment
There was a problem hiding this comment.
thanks for the PR. The CI failures are related to this PR. Please use pre-commit (as described in the development guide) to fix the linting issues and then push again.
… RandomizedSearchCV.
|
Thanks for the review. |
StefanieSenger
left a comment
There was a problem hiding this comment.
Thanks, @anandvenugopal-tech. I have pushed a little wording tweak to make it all a bit shorter: I have also added a line on verbosity=1 which had not been mentioned and also I have seen that parameter candidate indices are only printed from verbosity=10 on , which I found worth mentioning. Approving this PR.
|
Thanks for the updates and the review! |
|
Thanks @StefanieSenger and @anandvenugopal-tech, all looks good to me too, thanks for your time on this :-) |
| verbose : int | ||
| Controls the verbosity: the higher, the more messages. | ||
| verbose : int, default=0 | ||
| Controls the verbosity of the grid search. |
There was a problem hiding this comment.
What about:
| Controls the verbosity of the grid search. | |
| Controls the verbosity of information printed during fitting, with higher | |
| values yielding more detailed logging. |
"of the grid search" seems a bit redundant as this is the docstring for gridsearch. We can then get rid of the next sentence.
There was a problem hiding this comment.
Thanks! I agree.
I have gone and modified this @anandvenugopal-tech.
| - >=1 : summary of the total number of fits; | ||
| - >=2 : computation time for each fold and parameter candidate; | ||
| - >=3 : fold indices and scores; | ||
| - >=10 : parameter candidate indices and START messages before each fit. |
There was a problem hiding this comment.
Just a question, are the logs for verbosity between 3 and 10 (e.g., 3,4,5), different? And similar question for values greater than 10, is there more information or does any number greater than 10 give the same information?
I also wonder if we should add 'includes' or 'also' (like the previous docs) to make it clear that the previous information is included as well as the the new item.
There was a problem hiding this comment.
Just a question, are the logs for verbosity between 3 and 10 (e.g., 3,4,5), different? And similar question for values greater than 10, is there more information or does any number greater than 10 give the same information?
From 3 to 9, as well as above 10, it is all the same information.
I also wonder if we should add 'includes' or 'also' (like the previous docs) to make it clear that the previous information is included as well as the the new item.
We had this at first, but I then decided to go with >=number meaning "every verbosity larger than number displays this information".
There was a problem hiding this comment.
LGTM thanks. @StefanieSenger feel free to merge (when you're happy).
|
Merging, thanks a lot @anandvenugopal-tech and everyone involved! 🎉 |
|
Thanks a lot for the review and merge! |
…cikit-learn#32968) Co-authored-by: Stefanie Senger <[email protected]>
…cikit-learn#32968) Co-authored-by: Stefanie Senger <[email protected]>
This PR clarifies the behavior of the
verboseparameter inGridSearchCV and RandomizedSearchCV.
The documentation now:
verbose=0progress messages depending on the execution backend
This aligns the documentation with the observed behavior discussed in
#32946.
Reference Issues/PRs
What does this implement/fix? Explain your changes.
AI usage disclosure
I used AI assistance for:
Any other comments?