pub struct GraphClConfig {
pub temperature: f64,
pub proj_dim: usize,
pub mask_feature_rate: f64,
pub drop_edge_rate: f64,
pub add_edge_rate: f64,
}Expand description
Configuration for GraphCL-style contrastive learning.
Fields§
§temperature: f64Temperature parameter τ in the NT-Xent loss.
proj_dim: usizeOutput dimension of the projection head.
mask_feature_rate: f64Fraction of node feature dimensions to zero out in each view.
drop_edge_rate: f64Fraction of edges to randomly drop from the adjacency matrix.
add_edge_rate: f64Fraction of non-edges to randomly add to the adjacency matrix.
Trait Implementations§
Source§impl Clone for GraphClConfig
impl Clone for GraphClConfig
Source§fn clone(&self) -> GraphClConfig
fn clone(&self) -> GraphClConfig
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 GraphClConfig
impl Debug for GraphClConfig
Auto Trait Implementations§
impl Freeze for GraphClConfig
impl RefUnwindSafe for GraphClConfig
impl Send for GraphClConfig
impl Sync for GraphClConfig
impl Unpin for GraphClConfig
impl UnsafeUnpin for GraphClConfig
impl UnwindSafe for GraphClConfig
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