Description Usage Arguments Details Value Author(s) Examples
Returning classification result
1 2 | ## S3 method for class 'pt'
classify(pars, dat)
|
pars |
Result returned by training algorithm |
dat |
Data set to be classified (Here cbind(dat,1)=S) |
For consistency, using X(data set) instead of S ([dataset,1]) for classify function.
For more information perceptrain
An label obtained by classification method determined by pars
Xiaoyao Yang
1 2 3 4 5 | set.seed(1024)
z <- runif(n=3)
mydata <- fakedata(w=z,n=100)
r <- perceptrain(S=mydata$S,y=mydata$y,alpha_k=1,endcost=0)
classify.pt(r,mydata$S[,1:(NCOL(mydata$S)-1)])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.