fitBoosted: Simple Gradient Boosting

Description Usage Arguments Value Examples

View source: R/Main.R

Description

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

Usage

1
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

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

DidacticBoost documentation built on May 2, 2019, 9:20 a.m.