Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit c4b315d

Browse files
authored
Update asserting values in tests (#157)
* Update test_adagrad.py * Update test_sdca.py
1 parent 3393a27 commit c4b315d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/impl/tests/test_adagrad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_adagrad_hinge_multiclass():
4343
clf = AdaGradClassifier(alpha=1e-2, n_iter=100, loss="hinge", random_state=0)
4444
clf.fit(X, y)
4545
assert not hasattr(clf, "predict_proba")
46-
assert_almost_equal(clf.score(X, y), 0.960, 3)
46+
assert_almost_equal(clf.score(X, y), 0.940, 3)
4747

4848

4949
def test_adagrad_classes_binary():

lightning/impl/tests/test_sdca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_sdca_hinge_multiclass():
2727
clf = SDCAClassifier(alpha=1e-2, max_iter=100, loss="hinge",
2828
random_state=0)
2929
clf.fit(X, y)
30-
assert_almost_equal(clf.score(X, y), 0.947, 3)
30+
assert_almost_equal(clf.score(X, y), 0.933, 3)
3131

3232

3333
def test_sdca_squared():

0 commit comments

Comments
 (0)