Skip to content

Instantly share code, notes, and snippets.

#
# This is basically the standard demo with a high shrinkage.
# In GBM 2.1 this causes an obscure error. This same kind
# of thing happens on real data with normal shrinkage like 0.1
#
require(gbm)
N <- 1000
X1 <- runif(N)