pub struct NodeMaskingConfig {
pub mask_rate: f64,
pub replace_rate: f64,
pub n_neighbors: usize,
pub feature_dim: usize,
}Expand description
Configuration for BERT-style node attribute masking.
Fields§
§mask_rate: f64Fraction of nodes to mask. Default 0.15.
replace_rate: f64Of the masked nodes, fraction replaced with a random feature vector instead of a zero mask vector. Default 0.1.
n_neighbors: usizeNumber of BFS hops used for context features (informational only). Default 2.
feature_dim: usizeFeature dimensionality. Default 64.
Trait Implementations§
Source§impl Clone for NodeMaskingConfig
impl Clone for NodeMaskingConfig
Source§fn clone(&self) -> NodeMaskingConfig
fn clone(&self) -> NodeMaskingConfig
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 NodeMaskingConfig
impl Debug for NodeMaskingConfig
Auto Trait Implementations§
impl Freeze for NodeMaskingConfig
impl RefUnwindSafe for NodeMaskingConfig
impl Send for NodeMaskingConfig
impl Sync for NodeMaskingConfig
impl Unpin for NodeMaskingConfig
impl UnsafeUnpin for NodeMaskingConfig
impl UnwindSafe for NodeMaskingConfig
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