diff options
author | John Langford <jl@hunch.net> | 2011-07-18 22:08:05 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2011-07-18 22:08:05 +0400 |
commit | 8f15851e1f6bc976afdd88a68d9446539162cd61 (patch) | |
tree | 3b0fae82c41da9e204ecdfeeb7ff2e0b4f34dcd0 /cg.cc | |
parent | c2a74a3925a471604b62ce4c0839130e5e77c3b2 (diff) |
small bug fix from Olivier
Diffstat (limited to 'cg.cc')
-rw-r--r-- | cg.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |