arcx4Reweighter: Reweighter for the arc-x4 algorithm.

Description Usage Arguments Value Note See Also

View source: R/arcx4Reweighter.R

Description

An implementation of the reweighter described in the arc-x4 algorithm.

Usage

1
arcx4Reweighter(prediction, response, weights, m, ...)

Arguments

prediction

a vector of predictions.

response

a vector whose ith component is the true response for the ith component of prediction.

weights

a vector of weights. They don't necessarily need to sum to 1.

...

implemented to allow reweighter to accept its output as its input.

m

a vector length equal to nrow(data) enumerating each time the ith entry in data has been misclassified by all the estimators previously built.

Value

For internal bookkeeping, this function is inherits from the 'reweighter' class. It returns a named list with components

weights

the updated weights calculated from the input weights, prediction and response.

m

the updated count of misclassifications.

Note

If you're going to use this reweighter with boost you'll want to initialize m to 0 by including .reweighterArgs=list(m=0) inside your metadata list.

See Also

Other reweighters: adaboostReweighter; arcfsReweighter; boost, boost.function, boost.list; vanillaBagger


boostr documentation built on May 30, 2017, 4:45 a.m.

Search within the boostr package
Search all R packages, documentation and source code