I am trying to use this appoach https://stackoverflow.com/a/44117716/11102206 to predict 24 variables, but I'm getting ValueError: Multioutput target data is not supported with label binarization. Any help
X_train, X_val, y_train, y_val = train_test_split(X, y, test_size = 0.2,
random_state = 669)
params = {
'n_estimators': 10,
'max_depth': 8,
}
xgbc = xgb.XGBClassifier(**params)
ova_xgbc = OneVsRestClassifier(xgbc)
ova_xgbc.fit(X_train, y_train)
ova_preds = ova_xgbc.predict(X_val)