#[non_exhaustive]pub struct GraphContextConfig {
pub context_size: usize,
pub negative_samples: usize,
pub feature_dim: usize,
pub temperature: f64,
}Expand description
Configuration for subgraph-context contrastive pre-training.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.context_size: usizeMaximum number of nodes to include in the context subgraph (BFS size). Default 8.
negative_samples: usizeNumber of negative context samples per positive pair. Default 4.
feature_dim: usizeFeature dimensionality. Default 64.
temperature: f64Temperature for InfoNCE loss. Default 0.07.
Trait Implementations§
Source§impl Clone for GraphContextConfig
impl Clone for GraphContextConfig
Source§fn clone(&self) -> GraphContextConfig
fn clone(&self) -> GraphContextConfig
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 GraphContextConfig
impl Debug for GraphContextConfig
Auto Trait Implementations§
impl Freeze for GraphContextConfig
impl RefUnwindSafe for GraphContextConfig
impl Send for GraphContextConfig
impl Sync for GraphContextConfig
impl Unpin for GraphContextConfig
impl UnsafeUnpin for GraphContextConfig
impl UnwindSafe for GraphContextConfig
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