powered by
Create a k-NN classifier for a discriminant projector
# S3 method for discriminant_projector classifier(x, colind = NULL, knn = 1, ...)
a classifier object
the discriminant projector object
an optional vector specifying the column indices of the components
the number of nearest neighbors (default=1)
extra arguments
# Assume dp is a fitted discriminant_projector object # classifier(dp, knn = 5) # Basic example
Run the code above in your browser using DataLab