def test_warm_start(): clf = LinearSVC(warm_start=True, loss="l1", random_state=0, max_iter=100) for C in (0.1, 0.2): clf.C = C clf.fit(bin_dense, bin_target) acc = clf.score(bin_dense, bin_target) assert_greater(acc, 0.99)