rootMeanSquaredError(_:)
Computes the root mean squared error between predicted and ground truth values.
Declaration
func rootMeanSquaredError<T>(_ annotatedPredictions: [AnnotatedPrediction<T, T>]) -> T where T : FloatingPointParameters
- annotatedPredictions:
An
AnnotatedPredictionobject.
Return Value
The root mean squared error.
Discussion
If an empty AnnotatedPrediction is supplied, the result will be NaN.