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@nyclamp.(none)>2013-01-14 22:32:22 +0400
committerJohn Langford <jl@nyclamp.(none)>2013-01-14 22:32:22 +0400
commitcce2673ffc1e63e7e79f8d083503c94a53114221 (patch)
tree9df0d1c8b25b46a5e10395952990191a6e3185a1 /vowpalwabbit/sender.cc
parentcc9d17724bc595f4cdc1a5c7e4b75f04f5c75f75 (diff)
made save/load modular
Diffstat (limited to 'vowpalwabbit/sender.cc')
-rw-r--r--vowpalwabbit/sender.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/vowpalwabbit/sender.cc b/vowpalwabbit/sender.cc
index 18001d64..ea7243d3 100644
--- a/vowpalwabbit/sender.cc
+++ b/vowpalwabbit/sender.cc
@@ -23,6 +23,7 @@
using namespace std;
+namespace SENDER {
//nonreentrant
io_buf* buf;
@@ -57,6 +58,8 @@ void send_features(io_buf *b, example* ec)
b->flush();
}
+void save_load(void* in, io_buf& model_file, bool read, bool text) {}
+
void drive_send(void* in)
{
vw* all = (vw*)in;
@@ -83,7 +86,7 @@ void drive_send(void* in)
ec->loss = all->loss->getLoss(all->sd, ec->final_prediction, ld->label) * ld->weight;
- finish_example(*all, ec);
+ return_simple_example(*all, ec);
}
else if ((ec = get_example(all->p)) != NULL)//semiblocking operation.
{
@@ -111,3 +114,5 @@ void drive_send(void* in)
}
return;
}
+
+}