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

Commit 6b3699b

Browse files
authored
relax assert value in test for Fista (#167)
1 parent d79cb54 commit 6b3699b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/impl/tests/test_fista.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_fista_regression_simplex():
134134
y_pred = reg.predict(X)
135135
error = np.sqrt(np.mean((y - y_pred) ** 2))
136136
np.testing.assert_almost_equal(error, 0.000, 3)
137-
assert np.all(reg.coef_ >= 0)
137+
assert np.all(reg.coef_ >= -1e-12)
138138
np.testing.assert_almost_equal(np.sum(reg.coef_), 1.0, 3)
139139

140140

0 commit comments

Comments
 (0)