pub struct GraphMAEConfig {
pub mask_ratio: f32,
pub num_layers: usize,
pub hidden_dim: usize,
pub num_heads: usize,
pub decoder_layers: usize,
pub re_mask_ratio: f32,
pub loss_fn: LossFn,
pub input_dim: usize,
}Expand description
Configuration for a GraphMAE model.
Fields§
§mask_ratio: f32Fraction of nodes to mask (default 0.5).
num_layers: usizeNumber of GAT encoder layers.
Hidden / latent dimension.
num_heads: usizeNumber of attention heads per encoder layer.
decoder_layers: usizeNumber of decoder layers.
re_mask_ratio: f32Secondary mask ratio applied to latent before decoding (default 0.0).
loss_fn: LossFnReconstruction loss function.
input_dim: usizeInput feature dimension.
Trait Implementations§
Source§impl Clone for GraphMAEConfig
impl Clone for GraphMAEConfig
Source§fn clone(&self) -> GraphMAEConfig
fn clone(&self) -> GraphMAEConfig
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 GraphMAEConfig
impl Debug for GraphMAEConfig
Auto Trait Implementations§
impl Freeze for GraphMAEConfig
impl RefUnwindSafe for GraphMAEConfig
impl Send for GraphMAEConfig
impl Sync for GraphMAEConfig
impl Unpin for GraphMAEConfig
impl UnsafeUnpin for GraphMAEConfig
impl UnwindSafe for GraphMAEConfig
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