KNNClassifier.train

KNNClassifier.train(trainX, trainY, k=5)

Train the learner on the training data.