Skip to content

DOC: example to show how to use the ScoringMonitor callback nested under GridSearchCV - #34153

Merged
jeremiedbb merged 10 commits into
scikit-learn:mainfrom
ogrisel:example-scoring-monitor
May 29, 2026
Merged

jeremiedbb merged 10 commits into
scikit-learn:mainfrom
ogrisel:example-scoring-monitor

Conversation

@ogrisel

@ogrisel ogrisel commented May 29, 2026

Copy link
Copy Markdown
Member

This example showcases the interplay of all the callback work that went into 1.9 from a users point of view.

Note that some things require a bit of boilerplate (in particular to align recorded score values with hyperparameter values for each candidate explored in the grid search). The final analysis also highlights some limitations of the current implementation of the callback (missing ability to measure metrics on validation data). I expect this example to improve in readability and coverage in the future.

@ogrisel ogrisel added this to the 1.9 milestone May 29, 2026
@ogrisel ogrisel changed the title DOC: example to show how to use scoring monitor nested under GridSearchCV DOC: example to show how to use the ScoringMonitor callback nested under GridSearchCV May 29, 2026
@ogrisel

ogrisel commented May 29, 2026

Copy link
Copy Markdown
Member Author

@jeremiedbb jeremiedbb left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I find that it's a great addition to the example gallery. I like a lot that it's not just a tutorial about using the scoring monitor but additionally showcases the kind of analysis that callbacks enable and were not possible before.

There's a lot of UX improvements to do though :)

@jeremiedbb

Copy link
Copy Markdown
Member

one thing that i find annoying is that (at least on my browser, firefox) the dataframes are truncated and there's no horizontal scrollbar. That's somthing to fix indepently of this example though. (we already did it for the HTML diagrams)

@jeremiedbb

Copy link
Copy Markdown
Member

Should we remind in this example that the callbacks are experimental and subject to evolve quickly ?

ogrisel and others added 2 commits May 29, 2026 14:46

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Jérémie du Boisberranger <[email protected]>
@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label May 29, 2026
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label May 29, 2026
@jeremiedbb

Copy link
Copy Markdown
Member

I almost forgot, we added a TODO in the user doc to link to this example when it's there, see

.. TODO(callbacks): link to an example of how to use and plot the scores from the logs

@ogrisel

ogrisel commented May 29, 2026

Copy link
Copy Markdown
Member Author

@copilot please update this PR to address #34153 (comment) by looking at how this is typically done in other sections of the user guide.

@ogrisel

ogrisel commented May 29, 2026

Copy link
Copy Markdown
Member Author

Let me ask again via the Agents' tab...

@ogrisel

ogrisel commented May 29, 2026

Copy link
Copy Markdown
Member Author

It seems that copilot could not directly push commits to my existing PR, so I pushed the change myself.

@ogrisel

ogrisel commented May 29, 2026

Copy link
Copy Markdown
Member Author

@jeremiedbb merge? Or wait for a second reviewer?

@jeremiedbb
jeremiedbb merged commit bdddc73 into scikit-learn:main May 29, 2026
31 checks passed
@ogrisel ogrisel added this to Labs Jun 1, 2026
@ogrisel ogrisel moved this to Done in Labs Jun 1, 2026
@jeremiedbb jeremiedbb added the To backport PR merged in master that need a backport to a release branch defined based on the milestone. label Jun 1, 2026
@jeremiedbb jeremiedbb mentioned this pull request Jun 1, 2026
16 tasks done
jeremiedbb added a commit that referenced this pull request Jun 2, 2026
…under `GridSearchCV` (#34153)

Co-authored-by: Jérémie du Boisberranger <[email protected]>
@ogrisel
ogrisel deleted the example-scoring-monitor branch June 3, 2026 09:41
prady0t pushed a commit to prady0t/scikit-learn that referenced this pull request Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Callbacks Documentation To backport PR merged in master that need a backport to a release branch defined based on the milestone.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants