pub struct ClusteringConfig {
pub method: ClusteringMethod,
pub parameters: ClusteringParameters,
pub compute_prototypes: bool,
pub prototypes_per_cluster: usize,
pub compute_silhouette: bool,
pub random_seed: Option<u64>,
}Expand description
Configuration for clustering operations.
Fields§
§method: ClusteringMethodThe clustering method to use.
parameters: ClusteringParametersParameters for the clustering algorithm.
compute_prototypes: boolWhether to compute cluster prototypes.
prototypes_per_cluster: usizeNumber of prototypes to compute per cluster.
compute_silhouette: boolWhether to compute silhouette scores.
random_seed: Option<u64>Random seed for reproducibility.
Implementations§
Trait Implementations§
Source§impl Clone for ClusteringConfig
impl Clone for ClusteringConfig
Source§fn clone(&self) -> ClusteringConfig
fn clone(&self) -> ClusteringConfig
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 ClusteringConfig
impl Debug for ClusteringConfig
Source§impl Default for ClusteringConfig
impl Default for ClusteringConfig
Source§impl<'de> Deserialize<'de> for ClusteringConfig
impl<'de> Deserialize<'de> for ClusteringConfig
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
Auto Trait Implementations§
impl Freeze for ClusteringConfig
impl RefUnwindSafe for ClusteringConfig
impl Send for ClusteringConfig
impl Sync for ClusteringConfig
impl Unpin for ClusteringConfig
impl UnwindSafe for ClusteringConfig
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