Compute the mean squared error between targets y and predictions pred.
Implement solve(y,pred).
Returns. Return a non-negative float.
Example 1
Input:
solve([1, 3], [2, 2])
Output:
1.0
Example 2
Input:
solve([2.0, 2.0], [2.0, 2.0])
Output:
0.0
No results yet
Run your code to check it against the examples, or submit to run every test.