Skip to content

[Callbacks] FIX Always store the parent context in propagate_callbacks#33411

Merged
jeremiedbb merged 1 commit intoscikit-learn:callbacksfrom
FrancoisPgm:fix_tree_propagate
Feb 26, 2026
Merged

[Callbacks] FIX Always store the parent context in propagate_callbacks#33411
jeremiedbb merged 1 commit intoscikit-learn:callbacksfrom
FrancoisPgm:fix_tree_propagate

Conversation

@FrancoisPgm
Copy link
Copy Markdown
Contributor

Reference Issues/PRs

Towards #27676

What does this implement/fix? Explain your changes.

In propagate_callbacks, the parent context is now always stored as an attribute of the sub estimator, even if there is no callback to propagate, as the sub-estimator might hold a non auto-propagated callback that will need to reconstruct the task tree.

AI usage disclosure

I used AI assistance for:

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Any other comments?

ping @jeremiedbb

Copy link
Copy Markdown
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Thanks !

@jeremiedbb jeremiedbb merged commit d5e608b into scikit-learn:callbacks Feb 26, 2026
31 of 32 checks passed
@FrancoisPgm FrancoisPgm deleted the fix_tree_propagate branch March 2, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants