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
path: root/cg.cc
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2011-07-18 22:08:05 +0400
committerJohn Langford <jl@hunch.net>2011-07-18 22:08:05 +0400
commit8f15851e1f6bc976afdd88a68d9446539162cd61 (patch)
tree3b0fae82c41da9e204ecdfeeb7ff2e0b4f34dcd0 /cg.cc
parentc2a74a3925a471604b62ce4c0839130e5e77c3b2 (diff)
small bug fix from Olivier
Diffstat (limited to 'cg.cc')
-rw-r--r--cg.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cg.cc b/cg.cc
index 35c879f1..70767833 100644
--- a/cg.cc
+++ b/cg.cc
@@ -399,7 +399,8 @@ void setup_cg(gd_thread_params& t)
bool output_regularizer = false;
if (global.per_feature_regularizer_output != "" || global.per_feature_regularizer_text != "") {
- global.regularization = 1; // To make sure we are adding the regularization
+ if (reg.regularizers != NULL)
+ global.regularization = 1; // To make sure we are adding the regularization
output_regularizer = true;
}