test_stochastic_gradient.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:dask-ml 作者: dask 项目源码 文件源码
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_')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号