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:
authorariel faigon <github.2009@yendor.com>2014-01-05 14:18:18 +0400
committerariel faigon <github.2009@yendor.com>2014-01-05 14:18:18 +0400
commitf4d403717e2a4b423e12130b9cda9e36444244e6 (patch)
treef45ad01ba827506261b6628d39ae796ef5733fda /vowpalwabbit/vw.h
parentbad399eda7094861f7a6ef230e353afa6d4b1fbe (diff)
Fix --progress checkpoints to account for current example and update them accurately
Diffstat (limited to 'vowpalwabbit/vw.h')
-rw-r--r--vowpalwabbit/vw.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vowpalwabbit/vw.h b/vowpalwabbit/vw.h
index 66e5acad..15097eec 100644
--- a/vowpalwabbit/vw.h
+++ b/vowpalwabbit/vw.h
@@ -107,9 +107,9 @@ namespace VW {
inline void update_dump_interval(vw& all) {
if (all.progress_add) {
- all.sd->dump_interval += all.progress_arg;
+ all.sd->dump_interval = all.sd->weighted_examples + all.progress_arg;
} else {
- all.sd->dump_interval *= all.progress_arg;
+ all.sd->dump_interval = all.sd->weighted_examples * all.progress_arg;
}
}
}