pub trait MetricComputation<F: Float + Debug + Display> {
// Required methods
fn compute(
&self,
predictions: &Array<F, IxDyn>,
targets: &Array<F, IxDyn>,
) -> Result<F, MetricsError>;
fn name(&self) -> &str;
}Expand description
Trait for metrics that can be computed on neural network predictions and targets