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

Commit 9cde4bb

Browse files
committed
add failing test for #114
1 parent 22b96dd commit 9cde4bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lightning/impl/tests/test_primal_cd.py

+8
Original file line numberDiff line numberDiff line change
@@ -421,3 +421,11 @@ def test_multiclass_classes():
421421
clf = CDClassifier()
422422
clf.fit(mult_dense, mult_target)
423423
assert_equal(list(clf.classes_), [0, 1, 2])
424+
425+
426+
def test_n_jobs_can_fit():
427+
# Check that all loss cdef classes pickle (issue #114)
428+
for loss in ('squared', 'smooth_hinge', 'squared_hinge', 'modified_huber',
429+
'log'):
430+
clf = CDClassifier(loss=loss, n_jobs=2)
431+
clf.fit(mult_dense, mult_target)

0 commit comments

Comments
 (0)