MPINestedGridSearchCV.py 文件源码

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

项目:palladio 作者: slipguru 项目源码 文件源码
def fit(self, X, y):
        """Fit the model to the training data."""
        X, y = check_X_y(X, y, force_all_finite=False,
                         multi_output=self.multi_output)
        _check_param_grid(self.param_grid)

        # cv = _check_cv(self.cv, X, y, classifier=is_classifier(self.estimator))
        cv = _check_cv(self.cv, y, classifier=is_classifier(self.estimator))

        self.scorer_ = check_scoring(self.estimator, scoring=self.scoring)

        if comm_rank == 0:
            self._fit_master(X, y, cv)
        else:
            self._fit_slave()

        return self
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号