classify.ab: Classify for adaboost result

Description Usage Arguments Details Value Author(s) Examples

View source: R/classify.R

Description

Returning classification result returned by function adaBoost

Usage

1
2
## S3 method for class 'ab'
classify(pars, dat)

Arguments

pars

Result returned by adaboost algorithm

dat

Data set to be classified

Details

Specific designed for result returned by adaBoost function

For more information adaBoost

Value

An label (vector) obtained by classification method determined by pars

Author(s)

Xiaoyao Yang

Examples

1
2
3
4
5
6
7
set.seed(1024)
z <- runif(n=5)
mydata <- fakedata(w=z,n=100)
X<- mydata$S[,1:4]
y <- mydata$y
res <- adaBoost(dat.train=X,y.train=y,B=3)
classify.ab(res,X)

freestats documentation built on May 30, 2017, 4:27 a.m.