pub struct SpectralEmbeddingConfig {
pub dimensions: usize,
pub laplacian_type: SpectralLaplacianType,
pub tolerance: f64,
pub max_iterations: usize,
pub normalize: bool,
pub drop_first: bool,
}Expand description
Configuration for spectral embedding
Fields§
§dimensions: usizeNumber of embedding dimensions (eigenvectors to compute)
laplacian_type: SpectralLaplacianTypeType of graph Laplacian to use
tolerance: f64Convergence tolerance for eigenvalue computation
max_iterations: usizeMaximum iterations for eigenvalue computation
normalize: boolWhether to normalize the final embeddings to unit length
drop_first: boolWhether to drop the first eigenvector (trivial constant vector)
Trait Implementations§
Source§impl Clone for SpectralEmbeddingConfig
impl Clone for SpectralEmbeddingConfig
Source§fn clone(&self) -> SpectralEmbeddingConfig
fn clone(&self) -> SpectralEmbeddingConfig
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 SpectralEmbeddingConfig
impl Debug for SpectralEmbeddingConfig
Auto Trait Implementations§
impl Freeze for SpectralEmbeddingConfig
impl RefUnwindSafe for SpectralEmbeddingConfig
impl Send for SpectralEmbeddingConfig
impl Sync for SpectralEmbeddingConfig
impl Unpin for SpectralEmbeddingConfig
impl UnsafeUnpin for SpectralEmbeddingConfig
impl UnwindSafe for SpectralEmbeddingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more