Xg boost for multilabel classification?
问题 Is it possible to use xgboost for multilabel classification? Now I use OneVsRestClassifier over GradientBoostingClassifier from sklearn. It works, but use only one core from my CPU. In my data I have ~45 features and the task is to predict about 20 columns with binary(boolean) data. Metric is mean average precision (map@7). If you have a short example of code to share, that would be great. 回答1: There are a couple of ways to do that, one of which is the one you already suggested: 1. from