pub trait Metric<F: Float> { // Required method fn compute( &self, predictions: &Array<F, IxDyn>, targets: &Array<F, IxDyn>, ) -> Result<F>; }
Trait for metrics that evaluate model performance
Compute the metric for the given predictions and targets