July 2017
Beginner to intermediate
715 pages
17h 3m
English
Unsupervised learning can be used as a model for supervised learning, and depending on the supervised problem we have, it can be either classification via clustering or regression via clustering.
This approach is relatively straightforward. First, you associate each item with some cluster ID, and then:
Let's look at how we can do this for regression. At the beginning, we run K-means on the original data as usual:
int k = 250; int maxIter = 10; int runs = 1; KMeans km = new KMeans(X, k, maxIter, runs);
Read now
Unlock full access