Vowpal Wabbit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
VW::cb_class Class Reference

#include <cb.h>

Public Member Functions

 cb_class ()=default
 
 cb_class (float cost, uint32_t action, float probability)
 
bool operator== (cb_class j) const
 
constexpr bool has_observed_cost () const
 

Public Attributes

float cost = FLT_MAX
 
uint32_t action = 0
 
float probability = -1.f
 
float partial_prediction = 0.f
 

Constructor & Destructor Documentation

◆ cb_class() [1/2]

VW::cb_class::cb_class ( )
default

◆ cb_class() [2/2]

VW::cb_class::cb_class ( float  cost,
uint32_t  action,
float  probability 
)
inline

Member Function Documentation

◆ has_observed_cost()

constexpr bool VW::cb_class::has_observed_cost ( ) const
inlineconstexpr

◆ operator==()

bool VW::cb_class::operator== ( cb_class  j) const
inline

Member Data Documentation

◆ action

uint32_t VW::cb_class::action = 0

◆ cost

float VW::cb_class::cost = FLT_MAX

◆ partial_prediction

float VW::cb_class::partial_prediction = 0.f

◆ probability

float VW::cb_class::probability = -1.f

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