Vowpal Wabbit
|
#include <cstring>
#include <cfloat>
#include "reductions.h"
#include "rand48.h"
#include "vw_exception.h"
#include "parse_args.h"
Go to the source code of this file.
Classes | |
struct | LRQstate |
Functions | |
bool | valid_int (const char *s) |
bool | cheesyrbit (uint64_t &seed) |
float | cheesyrand (uint64_t x) |
constexpr bool | example_is_test (example &ec) |
void | reset_seed (LRQstate &lrq) |
template<bool is_learn> | |
void | predict_or_learn (LRQstate &lrq, single_learner &base, example &ec) |
base_learner * | lrq_setup (options_i &options, vw &all) |
|
inline |
|
inline |
|
inline |
Definition at line 41 of file lrq.cc.
References example::l, label_data::label, and polylabel::simple.
Referenced by predict_or_learn().
base_learner* lrq_setup | ( | options_i & | options, |
vw & | all | ||
) |
Definition at line 159 of file lrq.cc.
References VW::config::option_group_definition::add(), VW::config::options_i::add_and_parse(), LEARNER::as_singleline(), LEARNER::init_learner(), LEARNER::make_base(), VW::config::make_option(), vw::quiet, vw::random_seed, reset_seed(), LEARNER::learner< T, E >::set_end_pass(), setup_base(), spoof_hex_encoded_namespaces(), THROW, vw::trace_message, valid_int(), VW::config::options_i::was_supplied(), and vw::wpp.
Referenced by parse_reductions().
void predict_or_learn | ( | LRQstate & | lrq, |
single_learner & | base, | ||
example & | ec | ||
) |
Definition at line 50 of file lrq.cc.
References LRQstate::all, vw::audit, cheesyrand(), cheesyrbit(), example::confidence, LRQstate::dropout, example::example_counter, example_is_test(), f, example_predict::feature_space, example_predict::ft_offset, vw::hash_inv, example_predict::indices, features::indicies, LEARNER::learner< T, E >::learn(), example::loss, LRQstate::lrindices, LRQstate::lrpairs, LRQstate::orig_size, example::pred, LEARNER::learner< T, E >::predict(), v_array< T >::push_back(), features::push_back(), polyprediction::scalar, LRQstate::seed, features::space_names, stride_shift(), parameters::stride_shift(), features::values, and vw::weights.
void reset_seed | ( | LRQstate & | lrq | ) |
Definition at line 43 of file lrq.cc.
References LRQstate::all, vw::bfgs, LRQstate::initial_seed, and LRQstate::seed.
Referenced by lrq_setup().
bool valid_int | ( | const char * | s | ) |
Definition at line 22 of file lrq.cc.
Referenced by lrq_setup().