pub struct SquaredErrorLoss;Expand description
A linear output with squared-error loss L = 0.5 x sum((t - z)^2), for a
regression head or a classifier that regresses a one-hot target (C++
SquaredErrorHeadLoss): delta = t - z. Arithmetic only.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SquaredErrorLoss
impl RefUnwindSafe for SquaredErrorLoss
impl Send for SquaredErrorLoss
impl Sync for SquaredErrorLoss
impl Unpin for SquaredErrorLoss
impl UnsafeUnpin for SquaredErrorLoss
impl UnwindSafe for SquaredErrorLoss
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