Knn Regression in Matlab

What is the function k of the closest neighboring regression in Matlab? Is only the knn classification function available? Does anyone know any useful literature regarding this?

Hello

Farideh

+4
source share
1 answer

I do not believe that the k-NN regression algorithm is directly implemented in Matlab, but if you do some kind of search on Google, you may find some correct implementations. However, the algorithm is quite simple.

  • Find k-Nearest items using any distance metric.
  • Converting the weight of the reciprocal distance of each of k elements
  • Calculate a weighted average of k elements using the reciprocal distance weight.
+3

All Articles