AdaBoost.RTPlus: AdaBoost.RTPlus

Description Usage Arguments Value Examples

View source: R/Functions.R

Description

AdaBoost.RTPlus

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
AdaBoost.RTPlus(
  form,
  train,
  test,
  t_final = 100,
  thr = 0.01,
  power = 2,
  sigma = 0.5,
  ...
)

Arguments

form

The model formula.

train

A data.frame with the training data.

test

A data.frame with the test data.

t_final

The number of maximum boosting iterations. Default is 100.

thr

The error threshold. Default is 0.01.

power

Type of loss function, e.g. linear (1), squared (2). Default is 2.

sigma

Regularization factor. Default is 0.5.

...

Dots are passed to rpart

Value

Returns a vector with the predictions made by AdaBoost.RTPlus.

Examples

1
2
3
4
5
6
7
8
9
data(Boston,package="MASS")

idx <- sample(1:nrow(Boston),nrow(Boston)*0.75)
form <- medv ~ .

train <- Boston[idx,]
test <- Boston[-idx,]

preds <- AdaBoost.RTPlus(form,train,test)

nunompmoniz/ReBoost documentation built on Sept. 15, 2021, 8:28 p.m.