diff options
author | John Langford <jl@hunch.net> | 2014-07-11 21:23:41 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2014-07-11 21:23:41 +0400 |
commit | b024f25ac8538c3562e082c3b39378d4d47ef5e4 (patch) | |
tree | a3646741e3b6bc22ed2974429ec5fcf5ecb10ed3 | |
parent | 0e3b6415e3b2d67ec80f8432bbdbdfa53473987e (diff) |
add updated_prediction to bfgs
-rw-r--r-- | vowpalwabbit/bfgs.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vowpalwabbit/bfgs.cc b/vowpalwabbit/bfgs.cc index 59eed947..98652beb 100644 --- a/vowpalwabbit/bfgs.cc +++ b/vowpalwabbit/bfgs.cc @@ -753,6 +753,7 @@ void process_example(vw& all, bfgs& b, example& ec) float sd = all.loss->second_derivative(all.sd, b.predictions[b.example_number++],ld->label); b.curvature += d_dot_x*d_dot_x*sd*ld->weight; } + ec.updated_prediction = ld->prediction; if (b.preconditioner_pass) update_preconditioner(all, ec);//w[3] |