Trains the model. The method trains the K-Nearest model. It follows the conventions of the generic "CvStatModel.train" approach with the following limitations: Only CV_ROW_SAMPLE data layout is supported. Input variables are all ordered. Output v
(Mat trainData, Mat responses, Mat sampleIdx, boolean isRegression, int maxK, boolean updateBase)