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-01-23 19:52:28 +0400
committerJohn Langford <jl@hunch.net>2014-01-23 19:52:28 +0400
commit1012352e233c427abf8543aa0c11adb0bce76f32 (patch)
treebcf97e8a00f36ee7486200c08d35c895109fc145
parentf9a6b9bd2f40abf378481ae6ca92966dfdae2d5e (diff)
minor tweaks for build
-rwxr-xr-xtest/RunTests2
-rw-r--r--test/train-sets/ref/wiki1K.stderr17
-rw-r--r--vowpalwabbit/simple_label.cc2
3 files changed, 10 insertions, 11 deletions
diff --git a/test/RunTests b/test/RunTests
index d9e70335..9553a3ec 100755
--- a/test/RunTests
+++ b/test/RunTests
@@ -695,7 +695,7 @@ __DATA__
train-sets/ref/rcv1_small.stderr
# Test 17: Run LDA with 100 topics on 1000 Wikipedia articles
-{LDA} -k --lda 100 --lda_alpha 0.01 --lda_rho 0.01 --lda_D 1000 -b 13 --minibatch 128 --invariant train-sets/wiki1K.dat
+{LDA} -k --lda 100 --lda_alpha 0.01 --lda_rho 0.01 --lda_D 1000 -l 1 -b 13 --minibatch 128 --invariant train-sets/wiki1K.dat
train-sets/ref/wiki1K.stderr
# Test 18: Run searn on seq_small for 12 passes, 4 passes per policy
diff --git a/test/train-sets/ref/wiki1K.stderr b/test/train-sets/ref/wiki1K.stderr
index a2e7f941..271ac6ec 100644
--- a/test/train-sets/ref/wiki1K.stderr
+++ b/test/train-sets/ref/wiki1K.stderr
@@ -1,4 +1,3 @@
-your learning rate is too high, setting it to 1
Num weight bits = 13
learning rate = 1
initial_t = 1
@@ -8,15 +7,15 @@ Reading datafile = train-sets/wiki1K.dat
num sources = 1
average since example example current current current
loss last counter weight label predict features
-10.149296 10.149296 1 1.0 unknown 0.0000 732
-10.369810 10.590323 2 2.0 unknown 0.0000 27
-10.325922 10.282033 4 4.0 unknown 0.0000 53
+10.149301 10.149301 1 1.0 unknown 0.0000 732
+10.369812 10.590324 2 2.0 unknown 0.0000 27
+10.325923 10.282033 4 4.0 unknown 0.0000 53
10.401762 10.477602 8 8.0 unknown 0.0000 60
-10.356292 10.310822 16 16.0 unknown 0.0000 26
-10.472941 10.589591 32 32.0 unknown 0.0000 125
-10.474845 10.476749 64 64.0 unknown 0.0000 313
-10.425304 10.375762 128 128.0 unknown 0.0000 50
-9.797445 9.169587 256 256.0 unknown 0.0000 33
+10.356291 10.310820 16 16.0 unknown 0.0000 26
+10.472940 10.589588 32 32.0 unknown 0.0000 125
+10.474844 10.476749 64 64.0 unknown 0.0000 313
+10.425304 10.375763 128 128.0 unknown 0.0000 50
+9.797446 9.169588 256 256.0 unknown 0.0000 33
9.251716 8.705987 512 512.0 unknown 0.0000 26
finished run
diff --git a/vowpalwabbit/simple_label.cc b/vowpalwabbit/simple_label.cc
index d3646ec9..bfd06a2a 100644
--- a/vowpalwabbit/simple_label.cc
+++ b/vowpalwabbit/simple_label.cc
@@ -217,7 +217,7 @@ void output_and_account_example(vw& all, example& ec)
{
int f = (int)all.final_prediction_sink[i];
if(all.active && all.lda == 0)
- active_print_result(f, ec->final_prediction, ai, ec->tag);
+ active_print_result(f, ec.final_prediction, ai, ec.tag);
else if (all.lda > 0)
print_lda_result(all, f,ec.topic_predictions.begin,0.,ec.tag);
else