Skip to content

Commit 379ea7e

Browse files
sft-managedsft-managed
authored andcommitted
removal ofKNeighborsMixin type check
1 parent d17b6b5 commit 379ea7e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

imblearn/utils/_validation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ def check_neighbors_object(nn_name, nn_object, additional_neighbor=0):
9393
"""
9494
if isinstance(nn_object, Integral):
9595
return NearestNeighbors(n_neighbors=nn_object + additional_neighbor)
96-
elif isinstance(nn_object, KNeighborsMixin):
97-
return clone(nn_object)
9896
elif hasattr(nn_object, 'kneighbors') and hasattr(nn_object, 'kneighbors_graph'):
9997
return clone(nn_object)
10098
else:

0 commit comments

Comments
 (0)