GBM_Model {pomodoro} | R Documentation |
Gradient Boosting Model
Description
Gradient Boosting Model
Usage
GBM_Model(Data, xvar, yvar)
Arguments
Data |
The name of the Dataset. |
xvar |
X variables. |
yvar |
Y variable. |
Details
Unlike bagging trees, boosting does not use bootstrap sampling, rather each tree is fit using information from previous trees. An event probability of stochastic gradient boosting model is given by
where is in the range of
and its initial estimate of the model is
,
where
is the estimated sample proportion of a single class from the training set.
Value
The output from GBM_Model
.
Examples
yvar <- c("Loan.Type")
sample_data <- sample_data[c(1:120),]
xvar <- c("sex", "married", "age", "havejob", "educ", "political.afl",
"rural", "region", "fin.intermdiaries", "fin.knowldge", "income")
BchMk.GBM <- GBM_Model(sample_data, c(xvar, "networth"), yvar )
BchMk.GBM$finalModel
BchMk.GBM$Roc$auc
[Package pomodoro version 3.8.0 Index]