diff options
author | John Langford <jl@hunch.net> | 2015-01-02 21:09:45 +0300 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2015-01-02 21:09:45 +0300 |
commit | 8784ea7a1bb34e3dca02e6571cacda1ffe38aafa (patch) | |
tree | 8e00ad57ca51a776372ed32b28608633acd863aa /vowpalwabbit/parse_regressor.cc | |
parent | a51dac423995feb3d8ac57f63d7c42015fcce157 (diff) |
simpler options
Diffstat (limited to 'vowpalwabbit/parse_regressor.cc')
-rw-r--r-- | vowpalwabbit/parse_regressor.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vowpalwabbit/parse_regressor.cc b/vowpalwabbit/parse_regressor.cc index 6e7cf27e..7cb6a21b 100644 --- a/vowpalwabbit/parse_regressor.cc +++ b/vowpalwabbit/parse_regressor.cc @@ -307,19 +307,19 @@ void parse_regressor_args(vw& all, po::variables_map& vm, io_buf& io_temp) save_load_header(all, io_temp, true, false); } -void parse_mask_regressor_args(vw& all, po::variables_map& vm){ - +void parse_mask_regressor_args(vw& all) +{ + po::variables_map& vm = all.vm; if (vm.count("feature_mask")) { size_t length = ((size_t)1) << all.num_bits; string mask_filename = vm["feature_mask"].as<string>(); if (vm.count("initial_regressor")){ vector<string> init_filename = vm["initial_regressor"].as< vector<string> >(); if(mask_filename == init_filename[0]){//-i and -mask are from same file, just generate mask - return; } } - + //all other cases, including from different file, or -i does not exist, need to read in the mask file io_buf io_temp_mask; io_temp_mask.open_file(mask_filename.c_str(), false, io_buf::READ); |