Usage
bst(x, y, cost = 0.5, family = c("hinge", "gaussian"), ctrl = bst_control(),
control.tree = list(maxdepth = 1), learner = c("ls", "sm", "tree"))
## S3 method for class 'bst':
print(x, ...)
## S3 method for class 'bst':
predict(object, newdata=NULL, newy=NULL, mstop=NULL, type=c("response", "all.res", "class", "loss", "error"), ...)
## S3 method for class 'bst':
plot(x, type = c("step", "norm"),...)
## S3 method for class 'bst':
coef(object, ...)
## S3 method for class 'bst':
fpartial(object, mstop=NULL, newdata=NULL)Arguments
x
a data frame containing the variables in the model.
y
vector of responses. y must be in {1, -1} for family = "hinge".
cost
price to pay for false positive, 0 < cost < 1; price of false negative is 1-cost.
family
family = "hinge" for hinge loss and family="gaussian" for squared error loss.
Implementing the negative gradient corresponding
to the loss function to be minimized. By default, hinge loss
for +1/-
control.tree
control parameters of rpart.
learner
a character specifying the component-wise base learner to be used:
ls linear models,
sm smoothing splines,
tree regression trees.
type
in predict a character indicating whether the response, all responses across the boosting iterations, classes, loss or classification errors should be predicted in case of hinge
problems. in plot, plo
newdata
new data for prediction with the same number of columns as x.
mstop
boosting iteration for prediction.