You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decision/Extra trees & missing values: split ignored when NaNs + single unique value in feature #32272
When feature values consist of only NaNs and another value, the feature is considered as constant by this if:
if (
# All values for this feature are missing, or
end_non_missing == start or# This feature is considered constant (max - min <= FEATURE_THRESHOLD)
feature_values[end_non_missing -1] <= feature_values[start] + FEATURE_THRESHOLD
):
and not considered for the split. This if considers [0 0 0 NaN NaN] as constant (which is false, you can make a split between NaNs and non-NaNs and such a split might make a lot of sense in some datasets).
Same problem in the node_split_random for Extra trees.
Hey, I am looking for a good first issue and got to this. I am a bit unsure if this bug is still open for fixing considering the previous messages, could someone let me know the status?
Activity
cakedev0 commentedon Sep 25, 2025
The fix is really simple. I'll open a PR in a few minutes.
cakedev0 commentedon Sep 25, 2025
Huh. The doc has an example that relies on this bug 😫
I guess I need to open an issue/PR to fix that first.
FIX: Handle NaN values properly in constant feature detection - Fix i…
cakedev0 commentedon Sep 25, 2025
I decided to just fix the doc in the fix-PR #32274, as both are coupled and it's not a lot of changes.
SK1417 commentedon Oct 8, 2025
Hey, I am looking for a good first issue and got to this. I am a bit unsure if this bug is still open for fixing considering the previous messages, could someone let me know the status?