classify: Generic classify function

Description Usage Arguments Details Value Author(s) Examples

View source: R/classify.R

Description

Returning classification result

Usage

1
classify(pars, dat)

Arguments

pars

Result returned by training algorithm

dat

Data set to be classified

Details

Returning label for classification problem

This is the S3 generic method for returning classification result.

For more information classify.default

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(pars,X)

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