What is the value of K in KNN in classification learner app?

1 Ansicht (letzte 30 Tage)
I've trained my dataset with KNN classifier in classification learner app.I want to know the value of K.

Akzeptierte Antwort

Abhijit Bhattacharjee
Abhijit Bhattacharjee am 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
See the circled area in red - that is where you choose K.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by