Description Usage Arguments Value Author(s) Examples
Returning classification result
1 2 | ## Default S3 method:
classify(pars, dat)
|
pars |
Result returned by training algorithm |
dat |
Data set to be classified |
An label obtained by classification method determined by pars
Xiaoyao Yang
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.