pub struct SpectralConfig {
pub n_clusters: usize,
pub n_eigenvectors: usize,
pub gamma: f64,
pub n_iter_kmeans: usize,
pub n_iter_power: usize,
}Expand description
Hyper-parameters for spectral clustering.
Fields§
§n_clusters: usizeNumber of output clusters.
n_eigenvectors: usizeNumber of eigenvectors to compute (typically == n_clusters).
gamma: f64RBF kernel parameter γ: A[i,j] = exp(−γ ‖x_i − x_j‖²).
n_iter_kmeans: usizeNumber of Lloyd’s k-means iterations.
n_iter_power: usizePower-iteration steps per eigenvector.
Trait Implementations§
Source§impl Clone for SpectralConfig
impl Clone for SpectralConfig
Source§fn clone(&self) -> SpectralConfig
fn clone(&self) -> SpectralConfig
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 SpectralConfig
impl Debug for SpectralConfig
Auto Trait Implementations§
impl Freeze for SpectralConfig
impl RefUnwindSafe for SpectralConfig
impl Send for SpectralConfig
impl Sync for SpectralConfig
impl Unpin for SpectralConfig
impl UnsafeUnpin for SpectralConfig
impl UnwindSafe for SpectralConfig
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