base.py 文件源码

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

项目:TextCategorization 作者: Y-oHr-N 项目源码 文件源码
def predict(self, X, Z):
        """Predict class labels for samples in X.

        Parameters
        ----------
        X : array-like, shape = [n_samples, n_features]
            Samples.

        Returns
        -------
        y : array-like, shape = [n_samples]
            Predictions for input data.
        """

        return rbf_kernel(X, Z, gamma=self.gamma_k) @ self.dual_coef_
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号