[opengm] 187/386: fixed loss return
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:37:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository opengm.
commit 838308cec6e811d95783ed3de9a3d2fcd831c854
Author: mschiegg <martin.schiegg at iwr.uni-heidelberg.de>
Date: Fri Dec 19 18:56:36 2014 +0100
fixed loss return
---
src/interfaces/python/opengm/learning/__init__.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/interfaces/python/opengm/learning/__init__.py b/src/interfaces/python/opengm/learning/__init__.py
index 0e35706..5a1c95d 100644
--- a/src/interfaces/python/opengm/learning/__init__.py
+++ b/src/interfaces/python/opengm/learning/__init__.py
@@ -22,14 +22,14 @@ def _extendedGetLoss(self, model_idx, infCls, parameter = None):
import opengm
parameter = opengm.InfParam()
cppParam = infCls.get_cpp_parameter(operator='adder',accumulator='minimizer',parameter=parameter)
- self._getLoss(cppParam, model_idx)
+ return self._getLoss(cppParam, model_idx)
def _extendedGetTotalLoss(self, infCls, parameter = None):
if parameter is None:
import opengm
parameter = opengm.InfParam()
cppParam = infCls.get_cpp_parameter(operator='adder',accumulator='minimizer',parameter=parameter)
- self._getTotalLoss(cppParam)
+ return self._getTotalLoss(cppParam)
GridSearch_HammingLoss.learn =_extendedLearn
GridSearch_GeneralizedHammingLoss.learn =_extendedLearn
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git
More information about the debian-science-commits
mailing list