Source header: cuvs/cluster/agglomerative.hpp
Determines the method for computing the minimum spanning tree (MST)
Values
Simple container object for consolidating linkage results. This closely
mirrors the trained instance variables populated in Scikit-learn’s AgglomerativeClustering estimator.
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
Specialized parameters to build the KNN graph with regular distances
Fields
Specialized parameters to build the Mutual Reachability graph
Fields
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.
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.
Parameters
Returns
void
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.
Parameters
Returns
void