diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-20 15:37:54 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-03-20 15:37:54 -0400 |
commit | 41c404d0139dc705835e65f04b82df369792546b (patch) | |
tree | 545b9467ff01af2ca350b02ada8f1497d509a2c4 /training/optimize_test.cc | |
parent | 4a129e055387baf922f30f1502c6b6efad7dd8eb (diff) |
make c++11 compatible
Diffstat (limited to 'training/optimize_test.cc')
-rw-r--r-- | training/optimize_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/training/optimize_test.cc b/training/optimize_test.cc index fe7ca70f..bff2ca03 100644 --- a/training/optimize_test.cc +++ b/training/optimize_test.cc @@ -102,7 +102,7 @@ void TestOnline() { size_t N = 20; double C = 1.0; double eta0 = 0.2; - shared_ptr<LearningRateSchedule> r(new ExponentialDecayLearningRate(N, eta0, 0.85)); + std::tr1::shared_ptr<LearningRateSchedule> r(new ExponentialDecayLearningRate(N, eta0, 0.85)); //shared_ptr<LearningRateSchedule> r(new StandardLearningRate(N, eta0)); CumulativeL1OnlineOptimizer opt(r, N, C, std::vector<int>()); assert(r->eta(10) < r->eta(1)); |