blob: 892480ff7e39399b0dc4078184d501f9adb5ba27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
// This is a learner which does nothing with examples. Used when VW is used as a compressor.
#include "reductions.h"
namespace NOOP {
void learn(char&, LEARNER::base_learner&, example&) {}
LEARNER::base_learner* setup(vw& all)
{
new_options(all, "Noop options") ("noop","do no learning");
if(missing_required(all)) return NULL;
return &LEARNER::init_learner<char>(NULL, learn, 1); }
}
|