diff options
author | John Langford <jl@hunch.net> | 2009-08-22 20:01:48 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2009-08-22 20:01:48 +0400 |
commit | 443d882e32d15c24d3833f9c3da24c5318ec88a1 (patch) | |
tree | e9e08b2801f5fcfbc728c7bc3e00e920b5b28b36 /main.cc | |
parent | 5faaecdc533f27a03ad71874aabb4366cc979265 (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.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |