Last chance! 50% off unlimited learning
Sale ends in
classif.knn
or classif.kernel
.## S3 method for class 'classif':
summary(object,\dots)
## S3 method for class 'classif':
print(x,digits = max(3, getOption("digits") - 3),...)
getOption
(digits).prob.classification
.
-Confusion matrix between the theoretical groups and estimated groups.
-Highest probability of correct classification max.prob
.
}
If the object is returned from the function: classif.knn
knn
.
-Optimal number of neighbors: knn.opt
.
}
If the object is returned from the function: classif.kernel
h
.
-Functional measure of closeness (optimal distance, h.opt
).
}object
from one of the following functions:
classif.knn
classif.kernel
}classif.knn
, classif.kernel
and summary.classif
data(phoneme)
mlearn<-phoneme[["learn"]]
glearn<-phoneme[["classlearn"]]
## Not run, time consuming
# out=classif.knn(glearn,mlearn,knn=c(3,5,7))
# summary.classif(out)
# out2=classif.kernel(glearn,mlearn,h=2^(0:5))
#summary.classif(out2)
Run the code above in your browser using DataLab