pub enum ClusteringMethod {
HDBSCAN,
KMeans {
k: usize,
},
Spectral {
n_clusters: usize,
},
Agglomerative {
n_clusters: usize,
linkage: LinkageMethod,
},
}Expand description
Method used for clustering embeddings.
Variants§
HDBSCAN
HDBSCAN (Hierarchical Density-Based Spatial Clustering). Good for discovering clusters of varying densities and shapes.
KMeans
K-Means clustering with fixed number of clusters.
Spectral
Spectral clustering using eigenvalues of similarity matrix.
Agglomerative
Agglomerative hierarchical clustering.
Fields
§
linkage: LinkageMethodLinkage criterion (ward, complete, average, single).
Trait Implementations§
Source§impl Clone for ClusteringMethod
impl Clone for ClusteringMethod
Source§fn clone(&self) -> ClusteringMethod
fn clone(&self) -> ClusteringMethod
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClusteringMethod
impl Debug for ClusteringMethod
Source§impl Default for ClusteringMethod
impl Default for ClusteringMethod
Source§impl<'de> Deserialize<'de> for ClusteringMethod
impl<'de> Deserialize<'de> for ClusteringMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ClusteringMethod
impl Display for ClusteringMethod
Source§impl PartialEq for ClusteringMethod
impl PartialEq for ClusteringMethod
Source§impl Serialize for ClusteringMethod
impl Serialize for ClusteringMethod
impl StructuralPartialEq for ClusteringMethod
Auto Trait Implementations§
impl Freeze for ClusteringMethod
impl RefUnwindSafe for ClusteringMethod
impl Send for ClusteringMethod
impl Sync for ClusteringMethod
impl Unpin for ClusteringMethod
impl UnwindSafe for ClusteringMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more