pub struct DeepClusterConfig {
pub n_clusters: usize,
pub n_pca_components: usize,
pub kmeans_max_iter: usize,
pub kmeans_tol: f64,
pub reassign_empty: bool,
pub seed: u64,
}Expand description
Configuration for the DeepCluster CPU-side pipeline.
Fields§
§n_clusters: usizeNumber of clusters k for k-means. Default: 1000.
n_pca_components: usizeNumber of PCA components for whitening; 0 = skip whitening. Default: 256.
kmeans_max_iter: usizeMaximum k-means iterations. Default: 100.
kmeans_tol: f64Convergence tolerance: fraction of reassigned points. Default: 1e-4.
reassign_empty: boolWhether to reassign empty clusters to avoid degenerate solutions. Default: true.
seed: u64Seed for the deterministic LCG RNG. Default: 42.
Implementations§
Trait Implementations§
Source§impl Clone for DeepClusterConfig
impl Clone for DeepClusterConfig
Source§fn clone(&self) -> DeepClusterConfig
fn clone(&self) -> DeepClusterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeepClusterConfig
impl Debug for DeepClusterConfig
Auto Trait Implementations§
impl Freeze for DeepClusterConfig
impl RefUnwindSafe for DeepClusterConfig
impl Send for DeepClusterConfig
impl Sync for DeepClusterConfig
impl Unpin for DeepClusterConfig
impl UnsafeUnpin for DeepClusterConfig
impl UnwindSafe for DeepClusterConfig
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