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:
authorJohn Langford <jl@hunch.net>2009-08-22 20:01:48 +0400
committerJohn Langford <jl@hunch.net>2009-08-22 20:01:48 +0400
commit443d882e32d15c24d3833f9c3da24c5318ec88a1 (patch)
treee9e08b2801f5fcfbc728c7bc3e00e920b5b28b36 /main.cc
parent5faaecdc533f27a03ad71874aabb4366cc979265 (diff)
NaN check on input and making it so cache file is valid for smaller cache sizes.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index e95bd411..1339d54d 100644
--- a/main.cc
+++ b/main.cc
@@ -23,7 +23,9 @@ int main(int argc, char *argv[]) {
cerr << endl << "weighted example sum = " << vars->weighted_examples;
cerr << endl << "weighted label sum = " << vars->weighted_labels;
cerr << endl << "average loss = " << vars->sum_loss / vars->weighted_examples;
- cerr << endl << "best constant's loss = " << constant_loss;
+ cerr << endl << "best constant = " << best_constant;
+ if (vars->min_prediction == 0. && vars->max_prediction == 1. && best_constant < 1. && best_constant > 0.)
+ cerr << endl << "best constant's loss = " << constant_loss;
cerr << endl << "total feature number = " << vars->total_features;
cerr << endl;
}