Trait nncombinator::layer::Loss

source ·
pub trait Loss<U>: BackwardAll<U>where
    U: UnitValue<U>,
{ fn loss<L: LossFunction<U>>(
        &mut self,
        loss: Self::LossInput,
        _lossf: &L,
        stack: Self::OutStack
    ) -> Result<(Self::OutStack, Self::LossInput), TrainingError> { ... } }
Expand description

Trait defining the calculation of the error during error back propagation.

Provided Methods§

Error Calculation

Arguments
  • loss - Lower layer error
  • _lossf - loss function
  • stack - Stack to store calculation results at upper layers
Errors

This function may return the following errors

Implementors§