From 811f15a3fe463d6007eb53b45204c678cca7a4dd Mon Sep 17 00:00:00 2001 From: Can Serif Mekik Date: Wed, 9 Feb 2022 21:46:25 -0500 Subject: [PATCH] removed boltzmann tests --- tests/test_numdicts/test_numdicts.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/test_numdicts/test_numdicts.py b/tests/test_numdicts/test_numdicts.py index d100855..37965bd 100644 --- a/tests/test_numdicts/test_numdicts.py +++ b/tests/test_numdicts/test_numdicts.py @@ -699,17 +699,6 @@ def test_transform_keys(self):#TODO FIX self.assertAlmostEqual(g1[i], 1) -class TestNumdictsOpsBoltzmann(unittest.TestCase): - def test_boltzmann(self):#This always returns zero.... is this really what we want? - d = nd.NumDict(data={1: 1, 2: 2, 3: 3}) - with GradientTape() as t: - d1 = boltzmann(d,1) - d1, g1 = t.gradients(d1, d) - for i in range(1, 5): - if(d1.get(i) != None): - self.assertAlmostEqual(g1[i], 0) - - class TestNumdictsNested(unittest.TestCase): def test_persistent(self): for i, j in linspace(-10, 10):