What is ‘objective’ = ’binary:logitraw’ in XGBClassifier?

Viewed 2024

For classification tasks with XGBoost, I know the parameter ‘objective’ = ’binary:logistic’ means specifying a binary classification task with objective function using probability. From my understanding, probability here is just calculating the positive class instances in each leaf of the decision tree.

What does then the parameter ‘objective’ = ’binary:logitraw’ do? Documentation here (https://xgboost.readthedocs.io/en/latest/parameter.html) states this means “logistic regression for binary classification, output score before logistic transformation”. What does it mean by “output score before logistic regression”, especially since probability here is calculating the positive class instances in each leaf of the decision tree, so it doesn’t make sense to me that there would be a “logistic transformation” involved?

1 Answers

From documentation

binary:logitraw: logistic regression for binary classification, output score before 
logistic transformation

so the output has to go through a sigmoid to be transformed to probabilities.

Related