Chapter 4
Give Me a Number – Regression
Section 2
Building KNN Models for Regression
In this video, we look at the use of the knn.reg function to build the model and then the process of predicting with the model as well. We also show some additional convenience mechanisms to make the process easier. - Load the dummies, FNN, scales, and caret packages - Generate dummies for the categorical variable - Create three partitions and build model for several values of K