Vowpal Wabbit
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
gen_cs_example.h File Reference
#include "vw/common/vw_exception.h"
#include "vw/core/reductions/cb/cb_algs.h"
#include "vw/core/scope_exit.h"
#include <cfloat>

Classes

class  VW::details::cb_to_cs_per_model_state
 
class  VW::details::cb_to_cs
 
class  VW::details::cb_to_cs_adf_mtr
 
class  VW::details::cb_to_cs_adf_dr
 

Namespaces

namespace  VW
 
namespace  VW::details
 

Functions

float VW::details::safe_probability (float prob, VW::io::logger &logger)
 
void VW::details::gen_cs_example_ips (cb_to_cs &c, const VW::cb_label &ld, VW::cs_label &cs_ld, VW::io::logger &logger, float clip_p=0.f)
 
template<bool is_learn>
void VW::details::gen_cs_example_dm (cb_to_cs &c, VW::example &ec, const VW::cb_label &ld, VW::cs_label &cs_ld)
 
template<bool is_learn>
void VW::details::gen_cs_label (cb_to_cs &c, VW::example &ec, VW::cs_label &cs_ld, uint32_t action, float clip_p=0.f)
 
template<bool is_learn>
void VW::details::gen_cs_example_dr (cb_to_cs &c, VW::example &ec, const VW::cb_label &ld, VW::cs_label &cs_ld, float=0.f)
 
template<bool is_learn>
void VW::details::gen_cs_example (cb_to_cs &c, VW::example &ec, const VW::cb_label &ld, VW::cs_label &cs_ld, VW::io::logger &logger)
 
void VW::details::gen_cs_test_example (const VW::multi_ex &examples, VW::cs_label &cs_labels)
 
void VW::details::gen_cs_example_ips (const VW::multi_ex &examples, VW::cs_label &cs_labels, VW::io::logger &logger, float clip_p=0.f)
 
void VW::details::gen_cs_example_dm (const VW::multi_ex &examples, VW::cs_label &cs_labels)
 
void VW::details::gen_cs_example_mtr (cb_to_cs_adf_mtr &c, VW::multi_ex &ec_seq, VW::cs_label &cs_labels, uint64_t offset_index)
 
void VW::details::gen_cs_example_sm (VW::multi_ex &examples, uint32_t chosen_action, float sign_offset, const VW::action_scores &action_vals, VW::cs_label &cs_labels)
 
template<bool is_learn>
void VW::details::gen_cs_example_dr (cb_to_cs_adf_dr &c, VW::multi_ex &examples, VW::cs_label &cs_labels, float clip_p=0.f)
 
void VW::details::cs_prep_labels (VW::multi_ex &examples, std::vector< VW::cb_label > &cb_labels, VW::cs_label &cs_labels, std::vector< VW::cs_label > &prepped_cs_labels, uint64_t offset)
 
template<bool is_learn>
void VW::details::cs_ldf_learn_or_predict (VW::LEARNER::learner &base, VW::multi_ex &examples, std::vector< VW::cb_label > &cb_labels, VW::cs_label &cs_labels, std::vector< VW::cs_label > &prepped_cs_labels, bool predict_first, uint64_t offset, size_t id=0)