def test_RMSE_3 (self) : errors = [.2, .4, .6] v = RMSE(errors) self.assert_(v - 0.432049 < 1e-6)
def test_RMSE_2 (self) : errors = [.1, .1, .1, .3] v = RMSE(errors) self.assert_(v - 0.17320508075688773 < 1e-6)
def test_RMSE_1 (self) : errors = [.4, .6, .8, -.3] v = RMSE(errors) self.assert_(v - 0.5590169943749475 < 1e-6)
def test_RMSE_2(self): a = [1, 2, 3, 4] b = [2, 3, 4, 5] self.assert_(RMSE(a, b) == 1.0)
def test_RMSE_1(self): a = [2, 3, 4, 5] b = [2, 3, 4, 5] self.assert_(RMSE(a, b) == 0.0)
def test_RMSE_3(self): a = [2] b = [5] self.assert_(RMSE(a, b) == 3.0)