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@humpty.(none)>2010-10-06 02:51:16 +0400
committerJohn Langford <jl@humpty.(none)>2010-10-06 02:51:16 +0400
commit283b35580dc43fcedca5f4b88443f179f36352ab (patch)
tree60d1ec9fff6428f9da3528de2f29c37ddd768753 /main.cc
parentc3f26fbaff0cc4b65ece31dc981d3c61db192ac4 (diff)
Nikos active simulation patch
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index 2e8e5788..691b0aba 100644
--- a/main.cc
+++ b/main.cc
@@ -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;
}