def MSE(test_res, target):
    error = 0
    for i in range(0, len(test_res)):
        error += (test_res[i] - target[i]) ** 2
    return error / (2 * len(test_res))

8ec0bac486da0354f51d82bf06e5ce607596bb28
<mask token>

def MSE(test_res, target):
    error = 0
    for i in range(0, len(test_res)):
        error += (test_res[i] - target[i]) ** 2
    return error / (2 * len(test_res))
