Skip to content

Commit 3a200cd

Browse files
author
William de Vazelhes
committed
FIX remove nca deprecation test because we remove totally learning rate in the merge scikit-learn-contrib#139
1 parent 73a1312 commit 3a200cd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/metric_learn_test.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,6 @@ def test_iris(self):
171171
csep = class_separation(nca.transform(self.iris_points), self.iris_labels)
172172
self.assertLess(csep, 0.20)
173173

174-
def test_deprecation(self):
175-
# test that the right deprecation message is thrown.
176-
# TODO: remove in v.0.5
177-
X = np.array([[0, 0], [0, 1], [2, 0], [2, 1]])
178-
y = np.array([1, 0, 1, 0])
179-
nca = NCA(num_dims=2, learning_rate=0.01)
180-
msg = ('"learning_rate" parameter is not used.'
181-
' It has been deprecated in version 0.4 and will be'
182-
'removed in 0.5')
183-
assert_warns_message(DeprecationWarning, msg, nca.fit, X, y)
184-
185174

186175
class TestLFDA(MetricTestCase):
187176
def test_iris(self):

0 commit comments

Comments
 (0)