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

Commit bbdee34

Browse files
authored
Relax assert for number of non-zero elements in test (#191)
* Update test_primal_cd.py * address review comments
1 parent 729b45c commit bbdee34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/impl/tests/test_primal_cd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_debiasing_l1l2():
172172
max_iter=20, C=0.01, random_state=0)
173173
clf.fit(mult_csc, mult_target)
174174
assert clf.score(mult_csc, mult_target) > 0.75
175-
assert clf.n_nonzero(percentage=True) == 0.08
175+
assert 0.0 <= clf.n_nonzero(percentage=True) <= 0.1
176176

177177

178178
def test_debiasing_warm_start():

0 commit comments

Comments
 (0)