template.py 文件源码

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

项目:project-template 作者: scikit-learn-contrib 项目源码 文件源码
def predict(self, X):
        """ A reference implementation of a predicting function.

        Parameters
        ----------
        X : array-like of shape = [n_samples, n_features]
            The input samples.

        Returns
        -------
        y : array of shape = [n_samples]
            Returns :math:`x^2` where :math:`x` is the first column of `X`.
        """
        X = check_array(X)
        return X[:, 0]**2
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号