How to use Matlab for K-Nearest Neighbor (KNN) to predict the real estate prices given a set of observation?
2 views (last 30 days)
Show older comments
How to use Matlab for K-Nearest Neighbor (KNN) to predict the real estate prices given a set of observation?
I couldn’t figure out how to use Matlab for K-Nearest Neighbor (KNN) to predict the real estate prices given a set of observations
0 Comments
Answers (1)
Walter Roberson
on 31 Mar 2023
When you use knnsearch use 'seuclidean' distance, and use the 'Scale' option to give a higher weight to the price column .
0 Comments
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!