diff options
author | John Langford <jl@hunch.net> | 2009-11-30 06:54:16 +0300 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2009-11-30 06:54:16 +0300 |
commit | 58bfee78e714cec5fb4133719bc9da5241b70a4f (patch) | |
tree | f3fbccdb5cff33205985b0b38635ef623680a87c /offset_tree.cc | |
parent | 5fb933bf036233a70d7504f585dfcfe003c40bf1 (diff) | |
parent | db1c4aa0cb384593ded592e1b3f99b5c775952e3 (diff) |
tweaking compile bugs
Diffstat (limited to 'offset_tree.cc')
-rw-r--r-- | offset_tree.cc | 4 |
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; } } |