Clear Filters
Clear Filters

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)
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

Answers (1)

Walter Roberson
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 .

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!