[opengm] 160/386: Store best weight vector in dataset when done.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Aug 31 08:37: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 ff15369446522a3f165b3c1c8f02c9994391b989
Author: Carsten Haubold <carstenhaubold at googlemail.com>
Date: Fri Dec 19 13:50:36 2014 +0100
Store best weight vector in dataset when done.
---
include/opengm/learning/gridsearch-learning.hxx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/opengm/learning/gridsearch-learning.hxx b/include/opengm/learning/gridsearch-learning.hxx
index 0b8a64c..3105c3d 100644
--- a/include/opengm/learning/gridsearch-learning.hxx
+++ b/include/opengm/learning/gridsearch-learning.hxx
@@ -119,6 +119,11 @@ namespace opengm {
std::cout << " ==> ";
std::cout << bestLoss << std::endl;
weights_ = bestModelPara;
+
+ // save best weights in dataset
+ for(size_t p=0; p<dataset_.getNumberOfWeights(); ++p){
+ dataset_.getWeights().setWeight(p, weights_[p]);
+ }
};
}
}
--
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