Skip to content

FEA Callbacks base infrastructure + progress bars#28760

Merged
jeremiedbb merged 129 commits intoscikit-learn:callbacksfrom
jeremiedbb:base_callbacks_2
Feb 19, 2026
Merged

FEA Callbacks base infrastructure + progress bars#28760
jeremiedbb merged 129 commits intoscikit-learn:callbacksfrom
jeremiedbb:base_callbacks_2

Conversation

@jeremiedbb
Copy link
Copy Markdown
Member

Alternative to #27663 based on feedback from the drafting meeting. I'm keeping both open for now for easier comparison.

@StefanieSenger
Copy link
Copy Markdown
Member

StefanieSenger commented Feb 19, 2026

Reviewing this PR has gotten a bit harder since upstream commits were merged into it (but not into the callbacks feature branch it is targeting). There are now 179 changes files. Could you please rebase the callbacks branch as well, @jeremiedbb. Or is there a reason that stands against this?

@jeremiedbb
Copy link
Copy Markdown
Member Author

I just forgot tu push the callback branch :) the diff should be good now

# about the task being executed and its position in the task tree.


class CallbackContext:
Copy link
Copy Markdown
Member

@StefanieSenger StefanieSenger Feb 19, 2026

Choose a reason for hiding this comment

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

Can we have a __str__ or __repr__ for CallbackContext that shows the estimator_name, its task_id, and maybe get_context_path(self)?

For the moment its just something like <sklearn.callback._callback_context.CallbackContext object at 0x7f2b94733b30>.

Copy link
Copy Markdown
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

The discussion of this PR is becoming too large for github.

I think we can merge this PR to the feature branch and create dedicated issues for each unresolved comments. This will allow having concurrent discussion threads in smaller/more focused issues and PRs.

Copy link
Copy Markdown
Member

@StefanieSenger StefanieSenger left a comment

Choose a reason for hiding this comment

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

Happy to approve, so this can be merged into the callbacks feature branch and opened as a PR towards main. 🎉

@jeremiedbb
Copy link
Copy Markdown
Member Author

Thanks everyone for the reviews. Very happy that we can merge this PR (in a feature branch but still 😄 ) !
I'm going to merge it when the CI is done, and loop through the remaining unresolved comments to open dedicated issues for all of them (and the ones that we discussed on the side).

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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

8 participants