Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b75eb9

Browse files
authored
MAINT postpone erroring in 1.9 when dealing with integer in PDP (#30432)
1 parent 7784251 commit 3b75eb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/inspection/_partial_dependence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,14 +705,14 @@ def partial_dependence(
705705
continue
706706

707707
if _safe_indexing(X, feature_idx, axis=1).dtype.kind in "iu":
708-
# TODO(1.8): raise a ValueError instead.
708+
# TODO(1.9): raise a ValueError instead.
709709
warnings.warn(
710710
f"The column {feature!r} contains integer data. Partial "
711711
"dependence plots are not supported for integer data: this "
712712
"can lead to implicit rounding with NumPy arrays or even errors "
713713
"with newer pandas versions. Please convert numerical features"
714714
"to floating point dtypes ahead of time to avoid problems. "
715-
"This will raise ValueError in scikit-learn 1.8.",
715+
"This will raise ValueError in scikit-learn 1.9.",
716716
FutureWarning,
717717
)
718718
# Do not warn again for other features to avoid spamming the caller.

0 commit comments

Comments
 (0)