diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-31 01:08:42 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-08-31 01:08:42 +0000 |
commit | e4175086a36fbaf752b8a2dae089b9081ac5880f (patch) | |
tree | 8e253e48005a1b5af484c001306a4662543100be /training | |
parent | 926cedc80db13840263d373f17bdec762b9fd551 (diff) |
l2r bugfixes
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@634 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'training')
-rw-r--r-- | training/online_optimizer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/training/online_optimizer.h b/training/online_optimizer.h index 0cd748c4..d2718f93 100644 --- a/training/online_optimizer.h +++ b/training/online_optimizer.h @@ -50,7 +50,8 @@ class OnlineOptimizer { public: virtual ~OnlineOptimizer(); OnlineOptimizer(const std::tr1::shared_ptr<LearningRateSchedule>& s, - size_t training_instances) : schedule_(s), k_(), N_(training_instances) {} + size_t training_instances) + : N_(training_instances),schedule_(s),k_() {} void UpdateWeights(const SparseVector<double>& approx_g, SparseVector<double>* weights) { ++k_; const double eta = schedule_->eta(k_); |