[opengm] 227/386: bazinga

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:37:54 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 f6a111ed8c833e146b3e28d281246a62a46e81da
Author: DerThorsten <thorsten.beier at iwr.uni-heidelberg.de>
Date:   Tue Jan 13 11:31:04 2015 +0100

    bazinga
---
 include/opengm/graphicalmodel/weights.hxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/opengm/graphicalmodel/weights.hxx b/include/opengm/graphicalmodel/weights.hxx
index 9e0269e..08f74b8 100644
--- a/include/opengm/graphicalmodel/weights.hxx
+++ b/include/opengm/graphicalmodel/weights.hxx
@@ -125,14 +125,14 @@ namespace learning{
             else if(regularizationType_ == L1Regularizer){
                 double val = 0.0;
                 for(size_t wi=0; wi<weights.size(); ++wi){
-                    val += std::abs(weights[wi]);
+                    val += lambda_*std::abs(weights[wi]);
                 }
                 return val;
             }
             else { //if(regularizationType_ == L2Regularizer){
                 double val = 0.0;
                 for(size_t wi=0; wi<weights.size(); ++wi){
-                    val += std::pow(weights[wi], 2);
+                    val += lambda_*std::pow(weights[wi], 2);
                 }
                 return val;
             }

-- 
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