diff options
author | Patrick Simianer <p@simianer.de> | 2011-11-03 00:38:49 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2011-11-03 00:38:49 +0100 |
commit | 5ccbfda8675d01d91e56be477ab4e2f50db85aa9 (patch) | |
tree | a03e4a950c07982dfdbd73bc91ae15433fe48691 /training/optimize.cc | |
parent | 4b6b25c944270df34852c9b8de3a0ba714d76dcf (diff) | |
parent | a769e4964db2443ce165043095e18dfc0d788910 (diff) |
Merge remote-tracking branch 'upstream/master'
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; } |