Skip to content

Fix/tree nan mask#5

Merged
cakedev0 merged 7 commits intotesting-splitfrom
fix/tree_nan_mask
Jan 23, 2026
Merged

Fix/tree nan mask#5
cakedev0 merged 7 commits intotesting-splitfrom
fix/tree_nan_mask

Conversation

@cakedev0
Copy link
Copy Markdown
Owner

@cakedev0 cakedev0 commented Jan 23, 2026

Reference Issues/PRs

Fixes scikit-learn#33113

The bug was detected by the test from this PR: scikit-learn#32193

What does this implement/fix? Explain your changes.

First, I considered removing the erroneous break (see the issue).

But then I benchmarked _any_isnan_axis0, and I noticed it was not much faster than just np.isnan(...).any(axis=0) which anyway is incomparably fast compared to fitting a tree. So I propose to just remove this function.

AI usage disclosure

I used AI assistance for finding where the bug detected by my test came from.

Other comments

I didn't add a regression test as it's already covered by scikit-learn#32193, but I can add one if needed.

@cakedev0 cakedev0 merged commit 9c5e79c into testing-split Jan 23, 2026
13 of 14 checks passed
@cakedev0 cakedev0 deleted the fix/tree_nan_mask branch January 23, 2026 17:07
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