summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
Diffstat (limited to 'training')
-rw-r--r--training/online_optimizer.h3
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_);