for train_index, test_index in skf.split(X, y) :
RFC.fit(X[train_index], y[train_index]).predict_proba(X[test_index])
报错"None of [Int64Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n ...\n 586, 588, 590,], dtype='int64')] are in the [columns]"
解决方法:
for train_index, test_index in skf.split(X, y) :
RFC.fit(X.iloc[train_index], y.iloc[train_index]).predict_proba(X.iloc[test_index])