DECORATE: Binary classification with DECORATE (Melville and Mooney,...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/DECORATE.R

Description

DECORATE (Diverse Ensemble Creation by Oppositional Relabeling of Artificial Training Examples) builds an ensemble of J48 trees by recursively adding artificial samples of the training data.

Usage

1
DECORATE(x, y, C = 15, I = 50, R = 1, verbose = FALSE)

Arguments

x

a data frame of predictor (numeric, integer or factors). Character variables should be transformed to factors.

y

a vector of response labels. Only {0, 1} is allowed.

C

the desired ensemble size. Set to 15 as recommended by Melville and Mooney (2005).

I

the maximum number of iterations. Set to 50 as recommended by Melville and Mooney (2005).

R

the amount of articially generated examples, expressed as a fraction of the number of training examples. R is set to 1, meaning that the number of artificially created samples is equal to the training set size.

verbose

TRUE or FALSE. Should information be printed on the screen?

Value

an object of class DECORATE.

Author(s)

Authors: Matthias Bogaert, Maintainer: Matthias.Bogaert@UGent.Be

References

Melville, P., & Mooney, R. J. (2005). Creating diversity in ensembles using artificial data. Information Fusion, 6(1), 99-111. <doi: 10.1016/j.inffus.2004.04.001>

See Also

predict.DECORATE

Examples

1
2
3
4
data(iris)
y <- as.factor(ifelse(iris$Species[1:100]=="setosa",0,1))
x <- iris[1:100,-5]
dec <- DECORATE(x = x, y = y)

DecorateR documentation built on Nov. 20, 2020, 5:10 p.m.