Agglomerative
Source header: cuvs/cluster/agglomerative.hpp
agglomerative clustering hyperparameters
cluster::agglomerative::Linkage
Determines the method for computing the minimum spanning tree (MST)
Values
Types
cluster::agglomerative::single_linkage_output
Simple container object for consolidating linkage results. This closely
mirrors the trained instance variables populated in Scikit-learn’s AgglomerativeClustering estimator.
single-linkage clustering APIs
cluster::agglomerative::single_linkage
Single-linkage clustering, capable of constructing a KNN graph to
scale the algorithm beyond the n^2 memory consumption of implementations that use the fully-connected graph of pairwise distances by connecting a knn graph when k is not large enough to connect it.
Parameters
Returns
void
cluster::agglomerative::helpers::linkage_graph_params::distance_params
Specialized parameters to build the KNN graph with regular distances
Fields
cluster::agglomerative::helpers::linkage_graph_params::mutual_reachability_params
Specialized parameters to build the Mutual Reachability graph
Fields
cluster::agglomerative::helpers::build_linkage
Given a dataset, builds the KNN graph, connects graph components and builds a linkage
(dendrogram). Returns the Minimum Spanning Tree edges sorted by weight and the dendrogram. Reachability space
Parameters
Returns
void
Additional overload: cluster::agglomerative::helpers::build_linkage
Given a dataset, builds the KNN graph, connects graph components and builds a linkage
(dendrogram). Returns the Minimum Spanning Tree edges sorted by weight and the dendrogram. Reachability space
Parameters
Returns
void
cluster::agglomerative::helpers::build_dendrogram
Build dendrogram from a Minimum Spanning Tree (MST).
This function takes a sorted MST (represented as edges with source, destination, and weights) and constructs a dendrogram (hierarchical clustering tree) on the host.
nnz)
Parameters
Returns
void