pub struct SpectralConcordance {
pub lambda_laplacian: f64,
pub lambda_feature: f64,
pub lambda_sparsity: f64,
}Expand description
Spectral concordance loss for validating sparsification quality
L = λ₁·Laplacian_Alignment + λ₂·Feature_Preserve + λ₃·Sparsity
Fields§
§lambda_laplacian: f64Weight for Laplacian alignment term
lambda_feature: f64Weight for feature preservation term
lambda_sparsity: f64Weight for sparsity inducing term
Implementations§
Source§impl SpectralConcordance
impl SpectralConcordance
Sourcepub fn compute_loss(
&self,
original: &DynamicGraph,
sparse: &DynamicGraph,
) -> f64
pub fn compute_loss( &self, original: &DynamicGraph, sparse: &DynamicGraph, ) -> f64
Compute the spectral concordance loss between original and sparse graphs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpectralConcordance
impl RefUnwindSafe for SpectralConcordance
impl Send for SpectralConcordance
impl Sync for SpectralConcordance
impl Unpin for SpectralConcordance
impl UnwindSafe for SpectralConcordance
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> 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