Skip to content

Commit a9cd91c

Browse files
committed
remove unused import & variables
1 parent 2517bd9 commit a9cd91c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/combine/plot_illustration_spider.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from imblearn.combine import SPIDER
2020
from matplotlib.patches import Circle
2121
from scipy.stats import mode
22-
from sklearn.neighbors import NearestNeighbors
2322

2423
print(__doc__)
2524

@@ -75,10 +74,7 @@ def draw_neighborhoods(spider, neighborhood_k, neighborhood_k2, point,
7574
circle_k2 = PartialCircle(point, neighborhood_k2.radius,
7675
linestyle=('-' if additional else '--'))
7776

78-
if additional:
79-
neighbors = neighborhood_k2.neighbors
80-
else:
81-
neighbors = neighborhood_k.neighbors
77+
if not additional:
8278
ax.add_patch(circle_k)
8379

8480
if (spider.kind == 'strong') and outer:

0 commit comments

Comments
 (0)