IndexError: too many indices for array

木木木yanyanyan 发布于 2017/07/23 00:55
阅读 2K+
收藏 0

xgb_search = GridSearchCV(estimator = XGBClassifier(params),param_grid = param_grid)
xgb_search.fit(os_data_X, os_data_y)

 

错误

567         for test_fold_idx, per_label_splits in enumerate(zip(*per_label_cvs)):
    568             for label, (_, test_split) in zip(unique_labels, per_label_splits):
--> 569                 label_test_folds = test_folds[y == label]
    570                 # the test split can be too big because we used
    571                 # KFold(max(c, self.n_folds), self.n_folds) instead of

IndexError: too many indices for array

加载中
返回顶部
顶部