classifier.py 文件源码

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

项目:Insults 作者: thundergolfer 项目源码 文件源码
def predict(self,X,coef=None,intercept=None):
        """
        a) do the prediction based on given coefs and intercept, if provided.
        b) Scale the predictions so that they are in 0..1.

        """
        if coef is not None:
            assert intercept is not None
            self.intercept_ = intercept
            self.coef_ = coef

        return scale_predictions(linear_model.SGDRegressor.predict(self,X))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号