Skip to content

Instantly share code, notes, and snippets.

R version 3.1.1 (2014-07-10) -- "Sock it to Me"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
#
# 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)