[][src]Module linfa::clustering

Clustering algorithms for unlabeled data.

Structs

KMeans

K-means clustering aims to partition a set of unlabeled observations into clusters, where each observation belongs to the cluster with the nearest mean.

KMeansHyperParams

The set of hyperparameters that can be specified for the execution of the K-means algorithm.

KMeansHyperParamsBuilder

An helper struct used to construct a set of valid hyperparameters for the K-means algorithm (using the builder pattern).

Functions

generate_blob

Generate blob_size data points (a "blob") around blob_centroid.

generate_blobs

Given an input matrix blob_centroids, with shape (n_blobs, n_features), generate blob_size data points (a "blob") around each of the blob centroids.