Vowpal Wabbit
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
cost_sensitive.h File Reference
#include "vw/core/action_score.h"
#include "vw/core/label_parser.h"
#include "vw/core/multi_ex.h"
#include "vw/core/vw_fwd.h"
#include <cfloat>
#include <cstdint>
#include <vector>

Classes

class  VW::cs_class
 
class  VW::cs_label
 

Namespaces

namespace  VW
 
namespace  VW::details
 
namespace  COST_SENSITIVE
 
namespace  VW::model_utils
 

Typedefs

using COST_SENSITIVE::label = VW::cs_label
 
using COST_SENSITIVE::wclass = VW::cs_class
 

Functions

bool VW::is_cs_example_header (const VW::example &ec)
 
void VW::details::output_cs_example (VW::workspace &all, const VW::example &ec)
 
void VW::details::output_cs_example (VW::workspace &all, const VW::example &ec, const cs_label &cs_label, uint32_t multiclass_prediction)
 
void VW::details::finish_cs_example (VW::workspace &all, VW::example &ec)
 
template<class T >
void VW::details::finish_cs_example (VW::workspace &all, T &, VW::example &ec)
 
void VW::details::print_cs_update (VW::workspace &all, bool is_test, const VW::example &ec, const VW::multi_ex *ec_seq, bool multilabel, uint32_t prediction)
 
void VW::details::print_cs_update_multiclass (VW::workspace &all, bool is_test, size_t num_features, uint32_t prediction)
 
void VW::details::print_cs_update_action_scores (VW::workspace &all, bool is_test, size_t num_features, const VW::action_scores &action_scores)
 
void VW::details::update_stats_cs_label (const VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
void VW::details::output_example_prediction_cs_label (VW::workspace &all, const VW::example &ec, VW::io::logger &logger)
 
void VW::details::print_update_cs_label (VW::workspace &all, shared_data &sd, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void VW::details::update_stats_cs_label (const VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void VW::details::output_example_prediction_cs_label (VW::workspace &all, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
template<typename UnusedDataT >
void VW::details::print_update_cs_label (VW::workspace &all, shared_data &sd, const UnusedDataT &, const VW::example &ec, VW::io::logger &logger)
 
void COST_SENSITIVE::default_label (VW::cs_label &ld)
 
bool COST_SENSITIVE::ec_is_example_header (VW::example const &ec)
 
size_t VW::model_utils::read_model_field (io_buf &, cs_class &)
 
size_t VW::model_utils::write_model_field (io_buf &, const cs_class &, const std::string &, bool)
 
size_t VW::model_utils::read_model_field (io_buf &, cs_label &)
 
size_t VW::model_utils::write_model_field (io_buf &, const cs_label &, const std::string &, bool)
 

Variables

VW::label_parser VW::cs_label_parser_global