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

Commit

Permalink
fix incredibly weird nnz behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
vene committed Jun 10, 2017
1 parent 7a7473d commit a9077ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightning/impl/tests/test_primal_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ def test_debiasing_l1l2():
multiclass=False,
debiasing=True,
warm_debiasing=warm_debiasing,
max_iter=20, C=0.01, random_state=0,
verbose=True)
max_iter=20, C=0.01, random_state=0)
clf.fit(mult_csc, mult_target)
assert_greater(clf.score(mult_csc, mult_target), 0.75)
assert_equal(clf.n_nonzero(percentage=True), 0.08)
nnz = clf.n_nonzero(percentage=True)
assert_equal(nnz, 0.08)


def test_debiasing_warm_start():
Expand Down

0 comments on commit a9077ef

Please sign in to comment.