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.