pub trait LossFunction<U>:
Send
+ Sync
+ 'static{
// Required methods
fn derive(&self, r: U, t: U) -> U;
fn apply(&self, r: U, t: U) -> U;
fn name(&self) -> &'static str;
}
Expand description
Trait that defines the implementation of the loss function used in neural networks during training.