Skip to content

Commit e997e23

Browse files
sft-managedsft-managed
sft-managed
authored and
sft-managed
committed
Addded pep8lank lines
1 parent 8790628 commit e997e23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

imblearn/utils/_validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ def _transfrom_one(self, array, props):
6666
ret = array
6767
return ret
6868

69+
6970
def _is_neighbors_object(kneighbors_estimator):
7071
neighbors_attributes = [
7172
"kneighbors",
7273
"kneighbors_graph"
7374
]
7475
return all(hasattr(kneighbors_estimator, attr) for attr in neighbors_attributes)
7576

77+
7678
def check_neighbors_object(nn_name, nn_object, additional_neighbor=0):
7779
"""Check the objects is consistent to be a NN.
7880

0 commit comments

Comments
 (0)