train and test data using KNN classifier
Mostrar comentarios más antiguos
HI I want to know how to train and test data using KNN classifier we cross validate data by 10 fold cross validation. there are different commands like KNNclassify or KNNclassification.Fit. Don't know how to accomplish task Plz help me Thanks
1 comentario
Kathryn Hollowood
el 12 de Mzo. de 2019
That he just shared also includes information about predicting the classification using knn. So you use the fitcknn to create the model (Mdl). So it would be like:
class = predict(Mdl, TestCase).
This should hopefully give you what you are looking for.
Respuesta aceptada
Más respuestas (1)
snehal jaipurkar
el 26 de En. de 2018
0 votos
Sir please reply soon.... can we use eucledian distance and hamming distance both in knn classifier at the same time??? I am working on a project where I have to classify gabor features using hamming distance and geometrical features using eucledian distance..... Is it possible sir?????
Categorías
Más información sobre Nearest Neighbors en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!