Hi,
I have observed a big running time difference with objective=“binary:logistic” and objective=“binary:logitraw” in R with xgboost. Here is a simple example.
set.seed(1990)
x=matrix(rnorm(100*2),100,2)
g2=sample(c(0,1),100,replace=TRUE)
library(“xgboost”)
system.time(fit1 <- xgboost(x, g2, nrounds=500, objective=“binary:logistic”, verbose=0))
user system elapsed
3.334 0.023 0.283
system.time(fit1 <- xgboost(x, g2, nrounds=500, objective=“binary:logitraw”, verbose=0))
user system elapsed
119.860 0.572 10.217
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS
other attached packages:
[1] xgboost_1.2.0.1