コード例 #1
0
ファイル: test_diagnostics.py プロジェクト: PepSalehi/pysal
 def test_r2(self):
     obs = diagnostics.r2(reg)
     exp = 0.55240404083742334
     self.assertAlmostEquals(obs,exp)
コード例 #2
0
 def test_r2(self):
     obs = diagnostics.r2(reg)
     exp = 0.55240404083742334
     np.testing.assert_allclose(obs, exp, RTOL)
コード例 #3
0
ファイル: test_diagnostics.py プロジェクト: youngpong/pysal
 def test_r2(self):
     obs = diagnostics.r2(reg)
     exp = 0.55240404083742334
     self.assertAlmostEquals(obs, exp)
コード例 #4
0
ファイル: test_diagnostics.py プロジェクト: lanselin/pysal
 def test_r2(self):
     obs = diagnostics.r2(reg)
     exp = 0.55240404083742334
     np.testing.assert_allclose(obs,exp, RTOL)