Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
CB::cb_class Struct 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::cb_class::cb_class ( )
default
CB::cb_class::cb_class ( float  cost,
uint32_t  action,
float  probability 
)
inline

Member Function Documentation

constexpr bool CB::cb_class::has_observed_cost ( ) const
inline
bool CB::cb_class::operator== ( cb_class  j) const
inline

Member Data Documentation

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

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