classify.default: Default method for classify

Description Usage Arguments Value Author(s) Examples

View source: R/classify.R

Description

Returning classification result

Usage

1
2
## Default S3 method:
classify(pars, dat)

Arguments

pars

Result returned by training algorithm

dat

Data set to be classified

Value

An label obtained by classification method determined by pars

Author(s)

Xiaoyao Yang

Examples

1
2
3
4
5
6
7
8
set.seed(1024)
z <- runif(n=5)
mydata <- fakedata(w=z,n=100)
X<- mydata$S[,1:4]
y <- mydata$y
w <- rep(1/100,100)
pars <- decisionStump(X=X,w=w,y=y)
classify.default(pars,X)

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