Skip to content

Prevent the repetition of the propagate_callbacks warning#33

Open
FrancoisPgm wants to merge 2 commits intojeremiedbb:base_callbacks_2from
FrancoisPgm:fix_multiple_warnings
Open

Prevent the repetition of the propagate_callbacks warning#33
FrancoisPgm wants to merge 2 commits intojeremiedbb:base_callbacks_2from
FrancoisPgm:fix_multiple_warnings

Conversation

@FrancoisPgm
Copy link
Copy Markdown

Fixes what was raised in scikit-learn#28760 (comment)

Prevent the warning raised in propagate_callbacks to be repeated during the lifetime of the root context of the task tree. It only works when not using parallelization. I don't see how it could be done in that case unless we add an explicit method for the check in the mixin, to be called during fit before the parallelization happen. And even then it would only work for one level of parallelized nesting.

I can also add a dummy pipeline class to the test utils and modify the test of the warning to verify it's only raised once, but I'm wondering if it's worth it.

@jeremiedbb jeremiedbb moved this to In progress in Labs Feb 17, 2026
@jeremiedbb jeremiedbb added this to Labs Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants