meanSquaredError

Subtracts the arrays element by element. Arrays must have same length and must not be empty. Computes the average of the squares of the differences.

Return

the average of sum of (ai-bi)^2 for the elements

Parameters

a

the first array. Cannot be empty.

b

the second array. Cannot be empty