diff options
author | John Langford <jl@jl-desktop.(none)> | 2010-08-30 01:30:28 +0400 |
---|---|---|
committer | John Langford <jl@jl-desktop.(none)> | 2010-08-30 01:30:28 +0400 |
commit | b7ba3f3fa0d5e29f699803892ea1ec1aabba68ca (patch) | |
tree | b3e23712868d197d801ca98f37f8b8d8fed5679c /parse_regressor.cc | |
parent | dd82273b2ae2838363dc57cf156726c0845b9469 (diff) |
partially implemented backprop
Diffstat (limited to 'parse_regressor.cc')
-rw-r--r-- | parse_regressor.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/parse_regressor.cc b/parse_regressor.cc index 660a2b69..dd6a6913 100644 --- a/parse_regressor.cc +++ b/parse_regressor.cc @@ -153,10 +153,12 @@ void parse_regressor_args(po::variables_map& vm, regressor& r, string& final_reg regressor.close(); } if (!initialized) - if(vm.count("noop") || vm.count("sendto")) - r.weight_vectors = NULL; - else - initialize_regressor(r); + { + if(vm.count("noop") || vm.count("sendto")) + r.weight_vectors = NULL; + else + initialize_regressor(r); + } } void free_regressor(regressor &r) |