def test_mse(self):
        actual = np.array([0, 1, 2, 3])
        predicted = np.array([3, 2, 1, 0])
        self.assertEqual(5, estimators.mse(actual, predicted))

        actual = np.array([
            [0, 1],
            [2, 3],
            [4, 5],
        ])
        predicted = np.array([
            [5, 4],
            [3, 2],
            [1, 0],
        ])
        self.assertAlmostEqual(
            asfloat(70 / 6.),
            estimators.mse(actual, predicted)
        )
dataset/ETHPy150Open itdxer/neupy/tests/network/test_errors.py/ErrorFuncTestCase.test_mse/original