Extracting data from classifier objects
Ältere Kommentare anzeigen
I am using MATLAB's kNN classifier and would like to extract a list of distances from each grid-point to its k Nearest Neighbors (or something along the lines of this). I have looked through the properties/methods of the resulting classifier object that comes from using fitcknn() but cannot find this data. I do not know if this data is stored; I would like to use this data elsewhere and if fitcknn() already calculates these distances it would be more efficient to extract it.
Thank you!
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Nearest Neighbors finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!