Compute the reconstruction loss of an autoencoder: the mean squared difference over all entries between the input x and its reconstruction recon (same shape).
Implement solve(x,recon).
Returns. Return a non-negative float.
Example 1
Input:
solve([[1.0, 2.0], [3.0, 4.0]], [[1.0, 0.0], [0.0, 1.0]])
Output:
5.5
Example 2
Input:
solve([1.0, 2.0, 3.0], [1.0, 2.0, 3.0])
Output:
0.0
No results yet
Run your code to check it against the examples, or submit to run every test.