-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Hi,
I'm trying to transition to gbm3, as prompted by the message that's now displayed when loading the gbm package. However, I get visibly different predictions for the same data. Here's a simple reproducible example based on random data:
set.seed(1)
N <- 1000
data <- data.frame(Y=sample(c(0, 1), N, replace = TRUE),
X1=runif(N), X2=2*runif(N), X3=3*runif(N))
gbm1 <- gbm::gbm(Y~X1+X2+X3, data=data)
gbm2 <- gbm3::gbm(Y~X1+X2+X3, data=data)
pred1 <- predict(gbm1, data, type = "response", n.trees = 100)
pred2 <- predict(gbm2, data, type = "response", n.trees = 100)
range(pred1)
# 0.2253441 0.6708913
range(pred2)
# 0.4887668 0.5017359
In this and other cases I've tried, gbm3 predicts a much narrower and (for my ecological data) less plausible range of values. What are these differences due to? Do I need to do something different to get my expected results with gbm3?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels