pub struct Gradient { /* private fields */ }Implementations§
Source§impl Gradient
impl Gradient
pub fn mean_absolute_error(regularization: Regularization) -> Self
pub fn mean_squared_error(regularization: Regularization) -> Self
pub fn huber_loss(regularization: Regularization) -> Self
pub fn calculate_gradient( &self, delta: f64, input: &Array2<f64>, y_pred: &Array2<f64>, y_true: &Array2<f64>, weight: &Array2<f64>, ) -> Array2<f64>
Auto Trait Implementations§
impl Freeze for Gradient
impl RefUnwindSafe for Gradient
impl Send for Gradient
impl Sync for Gradient
impl Unpin for Gradient
impl UnwindSafe for Gradient
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