Description Usage Arguments Value Examples
Fit a simple, educational implementation of tree-based gradient boosting model.
1 | 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
1 2 3 | k <- kyphosis
k$Kyphosis <- factor(ifelse(k$Kyphosis == "present", 1L, -1L))
fit <- fitBoosted(Kyphosis ~ Age + Number + Start, data = k, iterations = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.