concision_core/traits/
loss.rs

1/*
2    Appellation: loss <module>
3    Contrib: @FL03
4*/
5
6pub trait CrossEntropy {
7    type Output;
8
9    fn cross_entropy(&self) -> Self::Output;
10}
11
12pub trait MeanAbsoluteError {
13    type Output;
14
15    fn mae(&self) -> Self::Output;
16}
17
18pub trait MeanSquaredError {
19    type Output;
20
21    fn mse(&self) -> Self::Output;
22}
23
24/*
25 ************* Implementations *************
26*/