summaryrefslogtreecommitdiff
path: root/training/optimize.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-10-31 14:03:22 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2011-10-31 14:03:22 -0400
commit6de8f58cd13813bf33af4903bf386439683c0fd6 (patch)
treec61ce14a652f04ca964fe7ac5ff3c4fd43d23a29 /training/optimize.cc
parentac85e18b071d961f52e1fa9aafd30b36c676dc4b (diff)
lbfgs + time-series minibatch optimization
Diffstat (limited to 'training/optimize.cc')
-rw-r--r--training/optimize.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/training/optimize.cc b/training/optimize.cc
index f0740d5c..41ac90d8 100644
--- a/training/optimize.cc
+++ b/training/optimize.cc
@@ -96,6 +96,7 @@ void LBFGSOptimizer::OptimizeImpl(const double& obj,
const vector<double>& g,
vector<double>* x) {
opt_.run(&(*x)[0], obj, &g[0]);
- cerr << opt_ << endl;
+ if (!opt_.requests_f_and_g()) opt_.run(&(*x)[0], obj, &g[0]);
+ // cerr << opt_ << endl;
}