Contents

maximumAbsoluteError(_:)

Computes the maximum absolute error between predicted and ground truth values.

Declaration

func maximumAbsoluteError<T>(_ annotatedPredictions: [AnnotatedPrediction<T, T>]) -> T where T : FloatingPoint

Parameters

  • annotatedPredictions:

    An AnnotatedPrediction object.

Return Value

The maximum absolute error.

Discussion

If an empty AnnotatedPrediction is supplied, the result will be NaN.

See Also

Metrics