How to use KNN to classify data in MATLAB
2 views (last 30 days)
Show older comments
I'm having trouble understanding how the K-NN classification works in MATLAB. 'Here's the problem, I have a large dataset 30 out of 90 subjects.
form a dataset like this:
359.872,317.948, Under-ripe
316.988,257.132, ripe
346.748,30.782, Over-ripe
I once tried and the result: Error using load Unknown text on line number 1 of ASCII file aa.txt
In short, I want to - divide the data into 3 groups - "train" KNN and want to know validation.
I hope you can help me, thank you in advance
3 Comments
Answers (1)
See Also
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!