4
$\begingroup$

In xgboost R package, there are two objectives given with booster gbtree.

  1. reg:logistic
  2. binary:logistic

See,page 22 (first 2 lines) https://cran.r-project.org/web/packages/xgboost/xgboost.pdf

I was wondering, what is the difference between these two methods?

$\endgroup$
1

1 Answer 1

6
$\begingroup$

binary:logistic is used for binary classification where the target variable takes binary output [0, 1]

reg:logistic is used for regression where the target variable is continuous between [0, 1]

Quote from xgboost doc:

We use linear regression here, if we want use objective = reg:logistic logistic regression, the label needed to be pre-scaled into [0,1]

https://github.com/dmlc/xgboost/tree/master/demo/regression

$\endgroup$
1
  • $\begingroup$ Would be nice if you could add the objective in its mathematical form $\endgroup$ Apr 16, 2018 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.