GCForest.py 文件源码

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

项目:gcForest 作者: pylablanche 项目源码 文件源码
def fit(self, X, y):
        """ Training the gcForest on input data X and associated target y.

        :param X: np.array
            Array containing the input samples.
            Must be of shape [n_samples, data] where data is a 1D array.

        :param y: np.array
            1D array containing the target values.
            Must be of shape [n_samples]
        """
        if np.shape(X)[0] != len(y):
            raise ValueError('Sizes of y and X do not match.')

        mgs_X = self.mg_scanning(X, y)
        _ = self.cascade_forest(mgs_X, y)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号