[opengm] 48/386: now models with loss are created too

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:03 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 4392b0bfa8676b471541757bebafdd48d3ed8f26
Author: Joerg Kappes <jkappes at goedel.(none)>
Date:   Mon Dec 15 15:48:34 2014 +0100

    now models with loss are created too
---
 include/opengm/learning/dataset/dataset.hxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/opengm/learning/dataset/dataset.hxx b/include/opengm/learning/dataset/dataset.hxx
index 3a155fc..7fe2a4a 100644
--- a/include/opengm/learning/dataset/dataset.hxx
+++ b/include/opengm/learning/dataset/dataset.hxx
@@ -80,7 +80,8 @@ namespace opengm {
          size_t numModel = temp[0];
          marray::hdf5::closeFile(file);
          
-         gms_.resize(numModel);
+         gms_.resize(numModel); 
+	 gmsWithLoss_.resize(numModel);
          gt_.resize(numModel);
          weights_ = Weights(numWeights);
          //Load Models and ground truth
@@ -91,7 +92,7 @@ namespace opengm {
             marray::hdf5::loadVec(file, "gt", gt_[m]);
             marray::hdf5::closeFile(file);
             opengm::hdf5::load(gms_[m],ss.str(),"gm"); 
-	    // buildModelWithLoss(m);
+	    buildModelWithLoss(m);
          }
 
       };

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