fitBoosted {DidacticBoost} | R Documentation |
Fit a simple, educational implementation of tree-based gradient boosting model.
fitBoosted(formula, data, iterations = 100, verbose = TRUE)
formula |
an object of class "formula" with a response but no interaction terms.
The response variable should be a binomial factor that has values of |
data |
the dataframe containing the independent variables and the response |
iterations |
The number of training rounds for boosting. |
verbose |
should the current training round be printed to the console? |
An S3 object of class boosted
. This includes
k <- kyphosis
k$Kyphosis <- factor(ifelse(k$Kyphosis == "present", 1L, -1L))
fit <- fitBoosted(Kyphosis ~ Age + Number + Start, data = k, iterations = 10)