diff options
author | John Langford <jl@hunch.net> | 2011-08-10 05:29:28 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2011-08-10 05:29:28 +0400 |
commit | 0d553ebaa28e28b3363cef99b431da10e03244c0 (patch) | |
tree | 1220cbec8380cbf5219313b32f22000ef946ade4 /parse_regressor.cc | |
parent | 9e40d1faec84d5f77d79f82a30c8d7933a9badcc (diff) |
missing NULL fix from Michael Radford
Diffstat (limited to 'parse_regressor.cc')
-rw-r--r-- | parse_regressor.cc | 5 |
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); } |