Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
Search::search Struct Reference

#include <search.h>

Public Member Functions

template<class T >
void set_task_data (T *data)
 
template<class T >
T * get_task_data ()
 
template<class T >
void set_metatask_data (T *data)
 
template<class T >
T * get_metatask_data ()
 
void set_options (uint32_t opts)
 
void set_label_parser (label_parser &lp, bool(*is_test)(polylabel &))
 
void loss (float incr_loss)
 
action predict (example &ec, ptag my_tag, const action *oracle_actions, size_t oracle_actions_cnt=1, const ptag *condition_on=nullptr, const char *condition_on_names=nullptr, const action *allowed_actions=nullptr, size_t allowed_actions_cnt=0, const float *allowed_actions_cost=nullptr, size_t learner_id=0, float weight=0.)
 
action predictLDF (example *ecs, size_t ec_cnt, ptag my_tag, const action *oracle_actions, size_t oracle_actions_cnt=1, const ptag *condition_on=nullptr, const char *condition_on_names=nullptr, size_t learner_id=0, float weight=0.)
 
bool predictNeedsExample ()
 
uint32_t get_history_length ()
 
bool is_ldf ()
 
std::stringstream & output ()
 
void set_num_learners (size_t num_learners)
 
void get_test_action_sequence (std::vector< action > &)
 
uint64_t get_mask ()
 
size_t get_stride_shift ()
 
std::string pretty_label (action a)
 
BaseTask base_task (multi_ex &ec)
 
vwget_vw_pointer_unsafe ()
 
void set_force_oracle (bool force)
 
 search ()
 
 ~search ()
 

Public Attributes

search_private * priv
 
void * task_data
 
void * metatask_data
 
const char * task_name
 
const char * metatask_name
 

Constructor & Destructor Documentation

Search::search::search ( )
Search::search::~search ( )

Member Function Documentation

BaseTask Search::search::base_task ( multi_ex ec)
inline
uint32_t Search::search::get_history_length ( )
uint64_t Search::search::get_mask ( )
template<class T >
T* Search::search::get_metatask_data ( )
inline
size_t Search::search::get_stride_shift ( )
template<class T >
T* Search::search::get_task_data ( )
inline
void Search::search::get_test_action_sequence ( std::vector< action > &  )
vw& Search::search::get_vw_pointer_unsafe ( )
bool Search::search::is_ldf ( )
void Search::search::loss ( float  incr_loss)
std::stringstream& Search::search::output ( )
action Search::search::predict ( example ec,
ptag  my_tag,
const action oracle_actions,
size_t  oracle_actions_cnt = 1,
const ptag condition_on = nullptr,
const char *  condition_on_names = nullptr,
const action allowed_actions = nullptr,
size_t  allowed_actions_cnt = 0,
const float *  allowed_actions_cost = nullptr,
size_t  learner_id = 0,
float  weight = 0. 
)
action Search::search::predictLDF ( example ecs,
size_t  ec_cnt,
ptag  my_tag,
const action oracle_actions,
size_t  oracle_actions_cnt = 1,
const ptag condition_on = nullptr,
const char *  condition_on_names = nullptr,
size_t  learner_id = 0,
float  weight = 0. 
)
bool Search::search::predictNeedsExample ( )
std::string Search::search::pretty_label ( action  a)
void Search::search::set_force_oracle ( bool  force)
void Search::search::set_label_parser ( label_parser lp,
bool(*)(polylabel &)  is_test 
)
template<class T >
void Search::search::set_metatask_data ( T *  data)
inline
void Search::search::set_num_learners ( size_t  num_learners)
void Search::search::set_options ( uint32_t  opts)
template<class T >
void Search::search::set_task_data ( T *  data)
inline

Member Data Documentation

void* Search::search::metatask_data
const char* Search::search::metatask_name
search_private* Search::search::priv
void* Search::search::task_data
const char* Search::search::task_name

The documentation for this struct was generated from the following file: