Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2014-07-11 21:23:41 +0400
committerJohn Langford <jl@hunch.net>2014-07-11 21:23:41 +0400
commitb024f25ac8538c3562e082c3b39378d4d47ef5e4 (patch)
treea3646741e3b6bc22ed2974429ec5fcf5ecb10ed3
parent0e3b6415e3b2d67ec80f8432bbdbdfa53473987e (diff)
add updated_prediction to bfgs
-rw-r--r--vowpalwabbit/bfgs.cc1
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]