[opengm] 103/386: re-enabled all testdatasets in test_learning

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:35:12 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 86d1b336256e63ad3277d4e46ddb44771fd7e16f
Author: Jan Funke <funke at ini.ch>
Date:   Wed Dec 17 14:55:56 2014 +0100

    re-enabled all testdatasets in test_learning
---
 src/unittest/learning/test_learning.cxx | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/unittest/learning/test_learning.cxx b/src/unittest/learning/test_learning.cxx
index 216d3bf..2c0c302 100644
--- a/src/unittest/learning/test_learning.cxx
+++ b/src/unittest/learning/test_learning.cxx
@@ -65,19 +65,19 @@ int main() {
 	  
    }
 
-   //{
-	  //DS2 dataset(1);
-	  //std::cout << "Dataset includes " << dataset.getNumberOfModels() << " instances and has " << dataset.getNumberOfWeights() << " parameters."<<std::endl;
+   {
+	  DS2 dataset(1);
+	  std::cout << "Dataset includes " << dataset.getNumberOfModels() << " instances and has " << dataset.getNumberOfWeights() << " parameters."<<std::endl;
 	  
 	  
-	  //opengm::learning::StructMaxMargin<DS2,LOSS>::Parameter para;
-	  //opengm::learning::StructMaxMargin<DS2,LOSS> learner(dataset,para);
+	  opengm::learning::StructMaxMargin<DS2,LOSS>::Parameter para;
+	  opengm::learning::StructMaxMargin<DS2,LOSS> learner(dataset,para);
 	  
 	  
-	  //INF::Parameter infPara;
-	  //infPara.integerConstraint_ = true;
-	  //learner.learn<INF>(infPara);
-   //}
+	  INF::Parameter infPara;
+	  infPara.integerConstraint_ = true;
+	  learner.learn<INF>(infPara);
+   }
 
 
 }

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