bagging: Applies the Bagging algorithm to a dataset

Description Usage Arguments Value See Also Examples

Description

Fits the Bagging algorithm proposed by Breiman in 1996 using classification trees as single classifiers.

Usage

1

Arguments

formula

formula specifying the independent and dependent variable columns

data

FLTable

mfinal

an integer, the number of iterations for which boosting is run or the number of trees to use. Defaults to mfinal=5 iterations.

control

options that control details of the rpart algorithm. See rpart for more details.

Value

An object of class "FLBagging" which has details about the trees generated and the number of votes in bag corresponding to every ObsID.

See Also

bagging for corresponding R function reference.

Examples

1
2
3
4
5
6
flt<-FLTable(getTestTableName("tblDecisionTreeMulti"),
			"ObsID","VarID","Num_Val")
flobj<-bagging(flt, formula = -1~.,mfinal=5)
pred <- predict(flobj, flt[1:4])
pred$confusion
pred$class

Fuzzy-Logix/AdapteR documentation built on May 6, 2019, 5:07 p.m.