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:
authorJake Hofman <jhofman+github@gmail.com>2011-08-04 01:11:08 +0400
committerJohn <jl@hunch.net>2011-08-04 04:08:48 +0400
commit5b73996e935f03784247f252876e10a4715875c1 (patch)
tree4d607a935649e2224a92de32d6bc27dffdeaba56 /gd_mf.cc
parentf9db5d3811f905b39c1591d78c7f016503a61022 (diff)
gd_mf takes save command as well
Diffstat (limited to 'gd_mf.cc')
-rw-r--r--gd_mf.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/gd_mf.cc b/gd_mf.cc
index b4ac3080..20d17d62 100644
--- a/gd_mf.cc
+++ b/gd_mf.cc
@@ -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));