pub struct MAELoss;Expand description
Mean Absolute Error loss function
Trait Implementations§
Source§impl LossFunction for MAELoss
impl LossFunction for MAELoss
Source§fn compute_loss(&self, predictions: &Array2<f64>, targets: &Array2<f64>) -> f64
fn compute_loss(&self, predictions: &Array2<f64>, targets: &Array2<f64>) -> f64
Compute the loss between predictions and targets
Source§fn compute_gradient(
&self,
predictions: &Array2<f64>,
targets: &Array2<f64>,
) -> Array2<f64>
fn compute_gradient( &self, predictions: &Array2<f64>, targets: &Array2<f64>, ) -> Array2<f64>
Compute the gradient of the loss with respect to predictions
Auto Trait Implementations§
impl Freeze for MAELoss
impl RefUnwindSafe for MAELoss
impl Send for MAELoss
impl Sync for MAELoss
impl Unpin for MAELoss
impl UnwindSafe for MAELoss
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