Skip to content

Commit

Permalink
removed TODOs, print numactions just so you can see it
Browse files Browse the repository at this point in the history
  • Loading branch information
hal3 committed Sep 17, 2014
1 parent dbcf40d commit 17c050a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions library/libsearn.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ template<class INPUT, class OUTPUT> class SearchTask {
HookTask::task_data* d = srn.get_task_data<HookTask::task_data>();
d->run_f = _searn_run_fn;
d->run_object = this;
d->var_map = NULL; // TODO
//d->num_actions = num_actions; // TODO
d->extra_data = NULL;
d->extra_data2 = NULL;
}
Expand Down
2 changes: 2 additions & 0 deletions library/test_search.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class SequenceLabelerTask : public SearchTask< vector<wt>, vector<uint32_t> > {
SequenceLabelerTask(vw& vw_obj)
: SearchTask< vector<wt>, vector<uint32_t> >(vw_obj) { // must run parent constructor!
srn.set_options( Searn::AUTO_HAMMING_LOSS | Searn::AUTO_HISTORY );
HookTask::task_data* d = srn.get_task_data<HookTask::task_data>();
cerr << "num_actions = " << d->num_actions << endl;
}

// using vanilla vw interface
Expand Down

0 comments on commit 17c050a

Please sign in to comment.