I want to simulate knn. When I add a new point on graph where other data points are on, it can predict class of it, but I don't have any idea about what to do after I upload a data set.
There is currently no way to retrieve this information directly from the ClassificationKNN model. However, other MATLAB functions can be used to determine the nearest neighbors. You will need to create a KNN searcher using the 'createns' function.
Best Answer