Skip to content

Commit 5bdbb67

Browse files
author
Guillaume Lemaitre
committed
Remove testing of version 0.2
1 parent ae57497 commit 5bdbb67

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

imblearn/under_sampling/tests/test_repeated_edited_nearest_neighbours.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -142,31 +142,3 @@ def test_renn_sample_wrong_X():
142142
renn.fit(X, Y)
143143
assert_raises(RuntimeError, renn.sample, np.random.random((100, 40)),
144144
np.array([0] * 50 + [1] * 50))
145-
146-
147-
def test_continuous_error():
148-
"""Test either if an error is raised when the target are continuous
149-
type"""
150-
151-
# continuous case
152-
y = np.linspace(0, 1, 5000)
153-
enn = RepeatedEditedNearestNeighbours(random_state=RND_SEED)
154-
assert_warns(UserWarning, enn.fit, X, y)
155-
156-
157-
def test_multiclass_fit_sample():
158-
"""Test fit sample method with multiclass target"""
159-
160-
# Make y to be multiclass
161-
y = Y.copy()
162-
y[0:1000] = 2
163-
164-
# Resample the data
165-
enn = RepeatedEditedNearestNeighbours(random_state=RND_SEED)
166-
X_resampled, y_resampled = enn.fit_sample(X, y)
167-
168-
# Check the size of y
169-
count_y_res = Counter(y_resampled)
170-
assert_equal(count_y_res[0], 400)
171-
assert_equal(count_y_res[1], 3600)
172-
assert_equal(count_y_res[2], 1000)

0 commit comments

Comments
 (0)