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

Commit

Permalink
Relax assert for number of non-zero elements in test (#191)
Browse files Browse the repository at this point in the history
* Update test_primal_cd.py

* address review comments
  • Loading branch information
StrikerRUS authored Jan 3, 2022
1 parent 729b45c commit bbdee34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/impl/tests/test_primal_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit bbdee34

Please sign in to comment.