diff --git a/lightning/impl/tests/test_primal_cd.py b/lightning/impl/tests/test_primal_cd.py index bc317bc7..b8711ae1 100644 --- a/lightning/impl/tests/test_primal_cd.py +++ b/lightning/impl/tests/test_primal_cd.py @@ -172,7 +172,7 @@ def test_debiasing_l1l2(): max_iter=20, C=0.01, random_state=0) clf.fit(mult_csc, mult_target) assert clf.score(mult_csc, mult_target) > 0.75 - assert clf.n_nonzero(percentage=True) == 0.08 + assert 0.0 <= clf.n_nonzero(percentage=True) <= 0.1 def test_debiasing_warm_start():