Skip to content
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

Include print counter for HalvingGridSearch in verbose=3 mode #23567

Open
JB91451 opened this issue Jun 8, 2022 · 1 comment
Open

Include print counter for HalvingGridSearch in verbose=3 mode #23567

JB91451 opened this issue Jun 8, 2022 · 1 comment

Comments

@JB91451
Copy link

JB91451 commented Jun 8, 2022

Describe the workflow you want to enable

Dear all,
when using HalvingGridSearch it is very likely, that (especially the first iteration) it contains 100's to 1000's of grid points. While monitoring in the verbose mode can be nice to get an idea about parameter importance, the only way to get an idea about the progress is to 'count rows'.

Describe your proposed solution

To get a better idea on the progress it would be nice to add the counter in the verbose = 3 output:
e.g. instead of
"[CV 1/3] END C=5, class_weight=None, degree=2, gamma=1, kernel=rbf;, score=(train=-0.050, test=-0.201) total time= 13.5s"

"[Iter 0; Fit Number 1234 of 4321; CV 1/3] END C=5, class_weight=None, degree=2, gamma=1, kernel=rbf;, score=(train=-0.050, test=-0.201) total time= 13.5s"

Both, Iter and total number of fits in the current iteration are provided at the beginning of each iteration and thus would require only minor changes.

Describe alternatives you've considered, if relevant

No response

Additional context

No response

@JB91451 JB91451 added Needs Triage Issue requires triage New Feature labels Jun 8, 2022
@thomasjpfan thomasjpfan added module:model_selection and removed Needs Triage Issue requires triage labels Jun 30, 2022
@thomasjpfan
Copy link
Member

Thank you for opening this issue. Moving forward, the work in #22000 will more elegantly resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants