We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17b6b5 commit 379ea7eCopy full SHA for 379ea7e
imblearn/utils/_validation.py
@@ -93,8 +93,6 @@ def check_neighbors_object(nn_name, nn_object, additional_neighbor=0):
93
"""
94
if isinstance(nn_object, Integral):
95
return NearestNeighbors(n_neighbors=nn_object + additional_neighbor)
96
- elif isinstance(nn_object, KNeighborsMixin):
97
- return clone(nn_object)
98
elif hasattr(nn_object, 'kneighbors') and hasattr(nn_object, 'kneighbors_graph'):
99
return clone(nn_object)
100
else:
0 commit comments