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