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 | a769e4964db2443ce165043095e18dfc0d788910 (patch) | |
tree | e813f3aa59fb2f242d029ff04837cbff524df2bd /training/optimize.cc | |
parent | 7007550ea4bdba74935c1817a2ba47db8000b5f0 (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; } |