I am working in the problem where the dependent variables are ordered classes, such as bad, good, very good.
How could I declare this problem in xgboost instead of normal classification or regression?
Thanks
I am working in the problem where the dependent variables are ordered classes, such as bad, good, very good.
How could I declare this problem in xgboost instead of normal classification or regression?
Thanks
You can run 2 xgboost binary classifiers
2 classifier classfies if sample is very good
if both true on unseen data classify as very good
I think you can use a regression setup, e.g. bad=0, good=0.5, very good = 1 for labels, and then postprocess output of XGBoost, such as pred_value < 0.25 => prediction_label=bad, pred_value >= 0.25 and pred_value < 0.75 => prediction_label=good and so on.