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>2009-11-30 06:54:16 +0300
committerJohn Langford <jl@hunch.net>2009-11-30 06:54:16 +0300
commit58bfee78e714cec5fb4133719bc9da5241b70a4f (patch)
treef3fbccdb5cff33205985b0b38635ef623680a87c /offset_tree.cc
parent5fb933bf036233a70d7504f585dfcfe003c40bf1 (diff)
parentdb1c4aa0cb384593ded592e1b3f99b5c775952e3 (diff)
tweaking compile bugs
Diffstat (limited to 'offset_tree.cc')
-rw-r--r--offset_tree.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/offset_tree.cc b/offset_tree.cc
index a7028dd2..42498a40 100644
--- a/offset_tree.cc
+++ b/offset_tree.cc
@@ -281,8 +281,8 @@ void* offset_tree(void *in)
ec->partial_prediction = 0;
float prediction = offset_predict(reg,ec,thread_num,*(params->vars),offset);
- if (prediction > 0.5 && label_bit != 1
- || prediction < 0.5 && label_bit != 0)
+ if ((prediction > 0.5 && label_bit != 1)
+ || (prediction < 0.5 && label_bit != 0))
break;
}
}