Vowpal Wabbit
Functions
noop.cc File Reference
#include "reductions.h"

Go to the source code of this file.

Functions

void learn (char &, LEARNER::base_learner &, example &)
 
LEARNER::base_learnernoop_setup (options_i &options, vw &)
 

Function Documentation

◆ learn()

void learn ( char &  ,
LEARNER::base_learner ,
example  
)

Definition at line 12 of file noop.cc.

Referenced by noop_setup().

12 {}

◆ noop_setup()

LEARNER::base_learner* noop_setup ( options_i options,
vw  
)

Definition at line 14 of file noop.cc.

References VW::config::option_group_definition::add(), VW::config::options_i::add_and_parse(), LEARNER::init_learner(), learn(), LEARNER::make_base(), VW::config::make_option(), and LEARNER::noop().

Referenced by parse_reductions().

15 {
16  bool noop = false;
17  option_group_definition new_options("Noop Learner");
18  new_options.add(make_option("noop", noop).keep().help("do no learning"));
19  options.add_and_parse(new_options);
20 
21  if (!noop)
22  return nullptr;
23 
25 }
base_learner * make_base(learner< T, E > &base)
Definition: learner.h:462
virtual void add_and_parse(const option_group_definition &group)=0
void learn(char &, LEARNER::base_learner &, example &)
Definition: noop.cc:12
learner< T, E > & init_learner(free_ptr< T > &dat, L *base, void(*learn)(T &, L &, E &), void(*predict)(T &, L &, E &), size_t ws, prediction_type::prediction_type_t pred_type)
Definition: learner.h:369
typed_option< T > make_option(std::string name, T &location)
Definition: options.h:80
void noop(void *)
Definition: learner.h:102