diff options
author | Jake Hofman <jhofman+github@gmail.com> | 2011-08-04 01:11:08 +0400 |
---|---|---|
committer | John <jl@hunch.net> | 2011-08-04 04:08:48 +0400 |
commit | 5b73996e935f03784247f252876e10a4715875c1 (patch) | |
tree | 4d607a935649e2224a92de32d6bc27dffdeaba56 /gd_mf.cc | |
parent | f9db5d3811f905b39c1591d78c7f016503a61022 (diff) |
gd_mf takes save command as well
Diffstat (limited to 'gd_mf.cc')
-rw-r--r-- | gd_mf.cc | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -45,13 +45,10 @@ void* gd_mf_thread(void *in) } else if ((ec = get_example(thread_num)) != NULL)//blocking operation. { - if ( ((ec->tag).begin != (ec->tag).end) - && ((ec->tag)[0] == 's')&&((ec->tag)[1] == 'a')&&((ec->tag)[2] == 'v')&&((ec->tag)[3] == 'e')) + if (command_example(ec, params)) { - if ((*(params->final_regressor_name)) != "") - { - dump_regressor(*(params->final_regressor_name), reg); - } + ec->threads_to_finish--; + delay_example(ec,0); } else mf_predict(reg,ec,thread_num,*(params->vars)); |