diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-10-31 14:03:22 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-10-31 14:03:22 -0400 |
commit | 6de8f58cd13813bf33af4903bf386439683c0fd6 (patch) | |
tree | c61ce14a652f04ca964fe7ac5ff3c4fd43d23a29 /training/optimize.cc | |
parent | ac85e18b071d961f52e1fa9aafd30b36c676dc4b (diff) |
lbfgs + time-series minibatch optimization
Diffstat (limited to 'training/optimize.cc')
-rw-r--r-- | training/optimize.cc | 3 |
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; } |