pub struct GraphMAE { /* private fields */ }Expand description
GraphMAE self-supervised model.
Implementations§
Source§impl GraphMAE
impl GraphMAE
Sourcepub fn new(config: GraphMAEConfig) -> Result<Self, GnnError>
pub fn new(config: GraphMAEConfig) -> Result<Self, GnnError>
Construct a new GraphMAE model from configuration.
§Errors
Returns GnnError::LayerConfig if dimensions are incompatible.
Sourcepub fn train_step(&self, graph: &GraphData) -> f32
pub fn train_step(&self, graph: &GraphData) -> f32
Run one training step: mask -> encode -> re-mask -> decode -> loss. Returns the reconstruction loss computed only on masked nodes.
Auto Trait Implementations§
impl Freeze for GraphMAE
impl RefUnwindSafe for GraphMAE
impl Send for GraphMAE
impl Sync for GraphMAE
impl Unpin for GraphMAE
impl UnsafeUnpin for GraphMAE
impl UnwindSafe for GraphMAE
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