pub trait LossFunctionLinear<'a, U, I, D, const N: usize>:
LossFunction<U>
+ Send
+ Sync
+ 'static{
type Output;
// Required method
fn linear_derive<'b>(
&self,
device: &D,
actual: &'b I,
expected: &'b I,
) -> Result<Self::Output, TrainingError>;
}Expand description
A property that defines the implementation of the loss function used in the linear layer when training a neural network.