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