fitBoosted {DidacticBoost}R Documentation

Simple Gradient Boosting

Description

Fit a simple, educational implementation of tree-based gradient boosting model.

Usage

fitBoosted(formula, data, iterations = 100, verbose = TRUE)

Arguments

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 1 for a positive response or -1 for a negative or lack of response.

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?

Value

An S3 object of class boosted. This includes

Examples

k <- kyphosis
k$Kyphosis <- factor(ifelse(k$Kyphosis == "present", 1L, -1L))
fit <- fitBoosted(Kyphosis ~ Age + Number + Start, data = k, iterations = 10)


[Package DidacticBoost version 0.1.1 Index]