Questions tagged [gbm]

R package gbm, implementing Generalized Boosted Regression Models library.

R package gbm, implementing Generalized Boosted Regression Models library.

This package implements extensions to Freund and Schapire’s AdaBoost algorithm and Friedman’s gradient boosting machine.

Includes regression methods for least squares,absolute loss, t-distribution loss, quantile regression,logistic, multinomial logistic, Poisson, Cox proportional hazards partial likelihood, AdaBoost exponential loss, Huberized hinge loss, and Learning to Rank measures (LambdaMart).

Who's using gbm?

The gbm package is used in examples in Software for Data Analysis by John Chambers.

gbm is also used in Elements of Statistical Learning by Hastie, Tibshirani and Friedman.

Richard A. Berk also uses gbm in his book, Statistical Learning from a Regression Perspective.

Source: gradientboostedmodels

328 questions
6
votes
1 answer

Implement null distribution for gbm interaction strength

I am trying to determine which interactions in a gbm model are significant using the method described in Friedman and Popescu 2008 https://projecteuclid.org/euclid.aoas/1223908046. My gbm is a classification model with 9 different classes. I'm…
see24
  • 862
  • 7
  • 18
6
votes
1 answer

Caret xgbLinear and xgbTree

I am using these two derivates of GBM on Caret. I tried both algo on the same dataset and they return different accuracy and perform in different time. By the name, I can think that the first use a Linear function somewhere, and the other use…
youngz
  • 119
  • 1
  • 12
6
votes
3 answers

Caret error using GBM, but not without caret

I've been using gbm through caret without problems, but when removing some variables from my dataframe it started to fail. I've tried with both github and cran versions of the mentioned packages. This is the error: > fitRF =…
Alejandro Pulver
  • 555
  • 4
  • 11
6
votes
1 answer

Difference in memory usage between gbm and blackboost

I'm working on a database with around 250000 observation and 50 predictors (some are factors so in the end around 100 features) and I have trouble using the blackboost() function (from mboost package) which give me a memory allocation error. In the…
Alex
  • 351
  • 1
  • 12
5
votes
0 answers

Inconsistent predictions from predict.gbm() 2.1.4 vs 2.1.3

This question is related to my earlier post here. I have tracked down the problem and it seems to be related to which version of gbm I use. The latest version, 2.1.4 exhibits the problem on my system (R 3.4.4 and also 3.5; both on Ubuntu 18.04)…
Robert Long
  • 2,785
  • 4
  • 18
  • 38
5
votes
1 answer

Understanding tree structure in R gbm package

I am having some difficulty understanding how the trees are structured in R's gbm gradient boosted machine package. Specifically, looking at the output of the pretty.gbm.tree Which features do the indices in SplitVar point to? I trained a GBM on a…
bill_e
  • 822
  • 1
  • 12
  • 22
5
votes
1 answer

gbm in R crashes

I tried to use gbm(formula, data) in Rstudio on my dataset. But Rstudio crashes on windows and Mac without any message (just " Rstudio needs to restart"). Any idea how I can fix this issue? thanks
user2327621
  • 857
  • 2
  • 10
  • 15
5
votes
1 answer

Weights argument in R gbm function

What is the weights argument for in the R gbm function? Does it implement cost-sensitive stochastic gradient boosting?
Antoine
  • 1,385
  • 4
  • 19
  • 44
5
votes
1 answer

Error in R gbm function when cv.folds > 0

I am using gbm to predict binary response. When I set cv.folds=0, everything works well. However when cv.folds > 1, I got error:Error in object$var.levels[[i]] : subscript out of bounds when the first irritation of crossvalidation finished. Someone…
Yoki
  • 813
  • 4
  • 13
  • 25
5
votes
0 answers

gbm confidence intervals in R?

Anybody know how to calculate confidence intervals from the gbm.predict() function? I'd like a method to ascertain a 95% confidence band on my gbm predictions.
4
votes
1 answer

GBM error in classification bernoulli distribution

When running the gbm function for a classification problem. I get the following error: Error in res[flag, ] <- predictions : replacement has length zero I would like to know why I get this error and how to solve it. My data is about 77 numeric…
4
votes
1 answer

Parameter Tuning using gridsearchcv for gradientboosting classifier in python

I am trying to run GradientBoostingClassifier() with the help of gridsearchcv. For every combination of parameter, I also need "Precison", "recall" and accuracy in tabular format. Here is the code: scoring= ['accuracy',…
MAC
  • 788
  • 7
  • 26
4
votes
1 answer

How to suppress iteration output from Boosted tree model gbm in Caret from R studio

If I run this code tot train a gbm-model with Knitr, I receive several pages of Iter output like copied below. Is there a method to suppress this output? mod_gbm <- train(classe ~ ., data = TrainSet, method = "gbm") ## Iter TrainDeviance …
user2165379
  • 181
  • 1
  • 14
4
votes
2 answers

H2O R Variable Importance Truncated List

I have a data set with over 400 features that I am estimating with GBM using H2O atop R. When I use the variable importance function (h2o.varimp) it only shows me the head and tail of the full ranked variable list. Is there a way to have the entire…
4
votes
2 answers

h2o model not fit in driver node's memory error

I ran GBM model through R code in H2O and got below error. The same code was running fine a couple of weeks. Wondering if this is H2O side error Or configuration on the user system? water.exceptions.H2OModelBuilderIllegalArgumentException: Illegal…
Eric_IL
  • 151
  • 1
  • 10
1
2
3
21 22