![KNN screenshot](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1003770/KNN%20screenshot.png)
What is the value of K in KNN in classification learner app?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rashidul Alim Anik
le 17 Mai 2022
Réponse apportée : Abhijit Bhattacharjee
le 19 Mai 2022
I've trained my dataset with KNN classifier in classification learner app.I want to know the value of K.
0 commentaires
Réponse acceptée
Abhijit Bhattacharjee
le 19 Mai 2022
K in KNN is the number of nearest neighbors. This is a user-supplied parameter. If you open the Classification Learner App and load some data for a KNN model, you might see a window similar to the following:
![KNN screenshot](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1003770/KNN%20screenshot.png)
See the circled area in red - that is where you choose K.
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!