summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-04-16 16:52:41 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2019-04-16 16:52:41 +0100
commita8bdbf487d144fa5c9e549a0acea44aeadb41739 (patch)
tree6f1e994c326fa65f68356e8be514064a0557cba6 /Wrappers
parent38cbce611ebe35cf803ccfc269d13e874fcf7bec (diff)
downloadframework-a8bdbf487d144fa5c9e549a0acea44aeadb41739.tar.gz
framework-a8bdbf487d144fa5c9e549a0acea44aeadb41739.tar.bz2
framework-a8bdbf487d144fa5c9e549a0acea44aeadb41739.tar.xz
framework-a8bdbf487d144fa5c9e549a0acea44aeadb41739.zip
removed comments
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/test/test_functions.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Wrappers/Python/test/test_functions.py b/Wrappers/Python/test/test_functions.py
index 530cd21..33a69d7 100644
--- a/Wrappers/Python/test/test_functions.py
+++ b/Wrappers/Python/test/test_functions.py
@@ -343,11 +343,9 @@ class TestFunction(unittest.TestCase):
self.assertBlockDataContainerEqual(z3,z1)
def test_KullbackLeibler(self):
+ print ("test_KullbackLeibler")
N, M = 2,3
ig = ImageGeometry(N, M)
- #data = ImageData(numpy.random.randint(-10, 100, size=(M, N)))
- #x = ImageData(numpy.random.randint(-10, 100, size=(M, N)))
- #bnoise = ImageData(numpy.random.randint(-100, 100, size=(M, N)))
data = ig.allocate(ImageGeometry.RANDOM_INT)
x = ig.allocate(ImageGeometry.RANDOM_INT)
bnoise = ig.allocate(ImageGeometry.RANDOM_INT)
@@ -355,14 +353,11 @@ class TestFunction(unittest.TestCase):
out = ig.allocate()
f = KullbackLeibler(data, bnoise=bnoise)
- print(f.sum_value)
- print(f(x))
grad = f.gradient(x)
f.gradient(x, out=out)
numpy.testing.assert_array_equal(grad.as_array(), out.as_array())
prox = f.proximal(x,1.2)
- #print(grad.as_array())
f.proximal(x, 1.2, out=out)
numpy.testing.assert_array_equal(prox.as_array(), out.as_array()) \ No newline at end of file