summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-10-18 22:28:00 +0100
committerGitHub <noreply@github.com>2019-10-18 22:28:00 +0100
commitd6917048bf92477bc26576b010b076b49b0da1b2 (patch)
treef34a47466e6525c8720e30a91285ac58274a6053
parent2f713dfa9d8a5dbd6fc08c94f5fc048d8838755c (diff)
downloadframework-d6917048bf92477bc26576b010b076b49b0da1b2.tar.gz
framework-d6917048bf92477bc26576b010b076b49b0da1b2.tar.bz2
framework-d6917048bf92477bc26576b010b076b49b0da1b2.tar.xz
framework-d6917048bf92477bc26576b010b076b49b0da1b2.zip
closes #370 (#395)
closes #370
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py
index a6c9545..4239423 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py
@@ -45,7 +45,7 @@ class KullbackLeibler(Function):
super(KullbackLeibler, self).__init__()
self.b = data
- self.bnoise = 0
+ self.bnoise = data * 0.
def __call__(self, x):