powered by
Build a model using the given data to be able to predict the label or the probabilities of other instances, according to 1-NN algorithm.
oneNN(x = NULL, y)
This argument is not used, the reason why he gets is to fulfill an agreement
a vector with the labels of training instances
A model with the data needed to use 1-NN