November 2017
Intermediate to advanced
1035 pages
11h 31m
English
Regression is covered elsewhere in the book, but we might also want to run a regression on "pockets" of the feature space. We can think that our dataset is subject to several data processes. If this is true, only training on similar data points is a good idea.
Our old friend, regression, can be used in the context of clustering. Regression is obviously a supervised technique, so we'll use k-Nearest Neighbors (k-NN) clustering rather than KMeans.
For the k-NN regression, we'll use the K closest points in the feature space to build the regression rather than using the entire space as in regular regression.
For this recipe, we'll use the iris dataset. If we want to predict something such as the petal ...
Read now
Unlock full access