pub trait Loss {
// Required methods
fn forward(&self, predictions: &NDArray, targets: &NDArray) -> f64;
fn backward(&self, predictions: &NDArray, targets: &NDArray) -> NDArray;
}
pub trait Loss {
// Required methods
fn forward(&self, predictions: &NDArray, targets: &NDArray) -> f64;
fn backward(&self, predictions: &NDArray, targets: &NDArray) -> NDArray;
}