March 2020
Intermediate to advanced
406 pages
8h 39m
English
K-means clustering is one of the most commonly utilized clustering algorithms in machine learning. K-means attempts to identify the underlying patterns of datapoints in a dataset. In K-means, we define k as the number of centroids (the center of an object with uniform density) that our cluster has. Then, we categorize the different datapoints with respect to those centroids.
We can use the K-means library, which can be found at https://github.com/muesli/kmeans, in order to perform K-means clustering on a dataset. Let's take a look:
package mainimport ( "fmt" "log" "math/rand" "github.com/muesli/clusters" "github.com/muesli/kmeans")
Read now
Unlock full access