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>2011-08-10 05:29:28 +0400
committerJohn Langford <jl@hunch.net>2011-08-10 05:29:28 +0400
commit0d553ebaa28e28b3363cef99b431da10e03244c0 (patch)
tree1220cbec8380cbf5219313b32f22000ef946ade4 /parse_regressor.cc
parent9e40d1faec84d5f77d79f82a30c8d7933a9badcc (diff)
missing NULL fix from Michael Radford
Diffstat (limited to 'parse_regressor.cc')
-rw-r--r--parse_regressor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/parse_regressor.cc b/parse_regressor.cc
index 9be72b28..301f22a7 100644
--- a/parse_regressor.cc
+++ b/parse_regressor.cc
@@ -262,7 +262,10 @@ void parse_regressor_args(po::variables_map& vm, regressor& r, string& final_reg
if (!initialized)
{
if(vm.count("noop") || vm.count("sendto"))
- r.weight_vectors = NULL;
+ {
+ r.weight_vectors = NULL;
+ r.regularizers = NULL;
+ }
else
initialize_regressor(r);
}