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)>2014-01-08 19:24:07 +0400
committerJohn Langford <jl@nyclamp.(none)>2014-01-08 19:24:07 +0400
commitda3e04ba5cc7d6a3c782216abc5ebfd6524c8cad (patch)
tree865a500bc795acfd5bdbfa1d6e0a13268d89dfe7 /vowpalwabbit/lrq.cc
parent7d1cebb2b1480c2fa63e60214f033452c4b2da7c (diff)
still doing void* removal
Diffstat (limited to 'vowpalwabbit/lrq.cc')
-rw-r--r--vowpalwabbit/lrq.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/vowpalwabbit/lrq.cc b/vowpalwabbit/lrq.cc
index 8485d817..8b9d0fee 100644
--- a/vowpalwabbit/lrq.cc
+++ b/vowpalwabbit/lrq.cc
@@ -52,10 +52,8 @@ namespace {
}
void
- reset_seed (void* d)
+ reset_seed (LRQ::LRQstate* lrq)
{
- LRQ::LRQstate* lrq = (LRQ::LRQstate*) d;
-
if (lrq->all->bfgs)
lrq->seed = lrq->initial_seed;
}
@@ -250,7 +248,7 @@ namespace LRQ {
all.wpp = all.wpp * (1 + maxk);
learner* l = new learner(lrq, predict_or_learn<true>, predict_or_learn<false>, all.l, 1 + maxk);
- l->set_end_pass (reset_seed);
+ l->set_end_pass<LRQstate,reset_seed>();
// TODO: leaks memory ?
return l;