pub struct EvocEmbeddingParams<T> {
pub n_label_prop_iter: usize,
pub base_init_threshold: usize,
pub scaling: T,
pub n_epochs: usize,
pub noise_level: T,
pub negative_sample_rate: T,
pub initial_alpha: T,
pub beta1: T,
pub beta2: T,
pub eps: T,
}Expand description
Parameters for the EVoC node embedding
Fields§
§n_label_prop_iter: usizeNumber of iterations during the label propagation
base_init_threshold: usizeBase initialisation threshold
scaling: TScaling parameter
n_epochs: usizeNumber of training epochs. Higher values give more refined embeddings at the cost of runtime. Default: 50.
noise_level: TScaling factor in the attractive gradient kernel numerator (
-2 * noise_level * d - 2). Controls how aggressively connected nodes
attract. Default: 0.5.
negative_sample_rate: TControls how many negative (repulsive) samples are drawn per positive edge sample. Lower values reduce repulsion; setting to zero effectively disables it. Default: 1.0.
initial_alpha: TInitial learning rate, linearly decayed to zero over training. Default: 0.1.
beta1: TAdam first moment decay rate. Default: 0.5.
beta2: TAdam second moment decay rate. Default: 0.9.
eps: TAdam numerical stability constant. Default: 1e-7.
Trait Implementations§
Source§impl<T: Clone> Clone for EvocEmbeddingParams<T>
impl<T: Clone> Clone for EvocEmbeddingParams<T>
Source§fn clone(&self) -> EvocEmbeddingParams<T>
fn clone(&self) -> EvocEmbeddingParams<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T: Debug> Debug for EvocEmbeddingParams<T>
impl<T: Debug> Debug for EvocEmbeddingParams<T>
Auto Trait Implementations§
impl<T> Freeze for EvocEmbeddingParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for EvocEmbeddingParams<T>where
T: RefUnwindSafe,
impl<T> Send for EvocEmbeddingParams<T>where
T: Send,
impl<T> Sync for EvocEmbeddingParams<T>where
T: Sync,
impl<T> Unpin for EvocEmbeddingParams<T>where
T: Unpin,
impl<T> UnsafeUnpin for EvocEmbeddingParams<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EvocEmbeddingParams<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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>
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>
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