Nimble
Navigation
Cleaning Data
Supervised Learning
Exploring Data
Unsupervised Learning
Neural Networks
Merging and Tidying Data
Additional Functionality
Installation
API Documentation
Cheatsheet
Example Datasets
Related Topics
Documentation overview
Nimble API Documentation
nimble.learners
KNNClassifier
Previous:
KNNClassifier.incrementalTrain
Next:
KNNImputation
Quick search
KNNClassifier.train
¶
KNNClassifier.
train
(
trainX
,
trainY
,
k
=
5
)
¶
Train the learner on the training data.