How to implement KNN regression

2 vues (au cours des 30 derniers jours)
Mekala balaji
Mekala balaji le 19 Août 2017
Commenté : omar khater le 25 Juil 2019
Hi,
I have data as below:
X:
1
2
3
4
9
11
13
17
19
20
y:
0.1
0.3
0.4
0.65
1.5
2.5
2.7
2.9
3.2
3.6
I want to compute y values for at x values at 6.3, 15.5&21.5
1. for each value of x, I want to take 4 nearest points in my calculation and choose most reasonable one as the final y
2. In the second method, compare minkowski & chebychev distances and choose most reasonable one
Many thanks in advance,

Réponse acceptée

KSSV
KSSV le 19 Août 2017
Read about fitcknn
  1 commentaire
omar khater
omar khater le 25 Juil 2019
what is recommended max size of the dataset using this function?
I have a dataset of size 40000*8 and when I try to use it, it asks for a very large memory array. If this dataset is too large for it , is there other alternative function that more optimized?

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by