Skip to contents

Clustering

Clustering algorithms.

shoal_kmeans()
K-Means Clustering
shoal_gmm()
Gaussian Mixture Model
shoal_dbscan()
DBSCAN Clustering
shoal_hdbscan()
HDBSCAN Clustering
shoal_evoc()
EVoC: Embedding Vector Oriented Clustering
shoal_hclust()
Hierarchical Agglomerative Clustering
shoal_slic()
Graph SLIC Superpixels

Distances

Pairwise distance matrices and nearest-neighbour search.

shoal_dist()
Pairwise Distance Matrix
shoal_knn() print(<shoal_knn>) plot(<shoal_knn>)
k-Nearest Neighbours

Validation

Assessing a clustering, and choosing the number of clusters.

shoal_silhouette()
Silhouette Widths
shoal_metrics()
Internal Cluster Validity Indices
shoal_energy() shoal_energy_self()
Two-Sample Energy Distance

Methods

Shared print and plot methods, and prediction for centroid models.

plot(<shoal_clustering>)
Plot clustering results
shoal_palette()
Default cluster palette
print(<shoal_clustering>) print(<shoal_hdbscan>) print(<shoal_evoc>) print(<shoal_kmeans>) print(<shoal_gmm>) print(<shoal_slic>)
Print a clustering result
predict(<shoal_kmeans>)
Assign New Observations to Fitted Clusters
predict(<shoal_gmm>)
Predict Mixture Membership
logLik(<shoal_gmm>)
Log-Likelihood of a Fitted Mixture

Configuration

Runtime settings.

shoal_threads()
Threads used by the Rust backends

Data

Bundled datasets.

rings
Concentric rings with noise
newsgroups
Sentence embeddings of newsgroup posts