diff options
author | John Langford <jl@humpty.(none)> | 2010-10-06 02:51:16 +0400 |
---|---|---|
committer | John Langford <jl@humpty.(none)> | 2010-10-06 02:51:16 +0400 |
commit | 283b35580dc43fcedca5f4b88443f179f36352ab (patch) | |
tree | 60d1ec9fff6428f9da3528de2f29c37ddd768753 /main.cc | |
parent | c3f26fbaff0cc4b65ece31dc981d3c61db192ac4 (diff) |
Nikos active simulation patch
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,9 +6,12 @@ embodied in the content of this file are licensed under the BSD #include "vw.h" #include "gd.h" +#include <stdlib.h> int main(int argc, char *argv[]) { - gd_vars *vars = vw(argc, argv); + drand48(); + gd_vars *vars = vw(argc, argv); + float best_constant = global.weighted_labels / global.weighted_examples; float constant_loss = (best_constant*(1.0 - best_constant)*(1.0 - best_constant) @@ -26,6 +29,8 @@ int main(int argc, char *argv[]) { if (global.min_label == 0. && global.max_label == 1. && best_constant < 1. && best_constant > 0.) cerr << endl << "best constant's loss = " << constant_loss; cerr << endl << "total feature number = " << global.total_features; + if (global.active_simulation) + cerr << endl << " total queries" << global.queries << endl; cerr << endl; } |