pub enum LossFn {
Sce {
gamma: f32,
},
Mse,
}Expand description
Loss function variant for reconstruction.
Variants§
Sce
Scaled Cosine Error: (1 - cos_sim)^gamma. Default for GraphMAE.
Mse
Standard Mean Squared Error.
Trait Implementations§
impl Copy for LossFn
impl StructuralPartialEq for LossFn
Auto Trait Implementations§
impl Freeze for LossFn
impl RefUnwindSafe for LossFn
impl Send for LossFn
impl Sync for LossFn
impl Unpin for LossFn
impl UnsafeUnpin for LossFn
impl UnwindSafe for LossFn
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