From e4175086a36fbaf752b8a2dae089b9081ac5880f Mon Sep 17 00:00:00 2001 From: graehl Date: Tue, 31 Aug 2010 01:08:42 +0000 Subject: l2r bugfixes git-svn-id: https://ws10smt.googlecode.com/svn/trunk@634 ec762483-ff6d-05da-a07a-a48fb63a330f --- training/online_optimizer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'training') 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& 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& approx_g, SparseVector* weights) { ++k_; const double eta = schedule_->eta(k_); -- cgit v1.2.3