meanSquaredError

Subtracts the arrays element by element. Arrays must have the same length and must not be empty. Computes the average of the squares forthe 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