New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multi:softmax : output probabilities #18
Comments
This feature was not in the toolkit, but seems to be interesting support. So I have updated the newest version in master branch to support this. Checkout https://github.com/tqchen/xgboost/blob/master/demo/multiclass_classification/train.py Thanks for using the tool |
Thanks a lot for this quick reply for making the option available. Jean-Baptiste Regli |
For the predicted probability, how do we know the order of class in the output? For example, if I put a pd.Series Y with 3 classes in xgb.DMatrix(..., label = Y) and put it in xgb.train(). When I get the output from final_model.predict(test_data), how can I know which class is in the first column, the second and the last. Thanks. |
Hi,
I am trying to use your library to tackle a multi-class classification problem.
I may have miss something in the documentation but is it possible to have access to the probabilities of belonging to each class?
If it is not, do you plan on adding an option similar to "binary:logistic" for multi-class problems?
Thanks you.
Jean-Baptiste Regli
The text was updated successfully, but these errors were encountered: