def test_basic(self, single_chunk_classification):
X, y = single_chunk_classification
a = lm.PartialSGDClassifier(classes=[0, 1], random_state=0,
max_iter=1000, tol=1e-3)
b = lm_.SGDClassifier(random_state=0, max_iter=1000, tol=1e-3)
a.fit(X, y)
b.partial_fit(X, y, classes=[0, 1])
assert_estimator_equal(a, b, exclude='loss_function_')
评论列表
文章目录