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

#include <cost_sensitive.h>

Public Member Functions

 cs_class (float x, uint32_t class_index, float partial_prediction, float wap_value)
 
 cs_class ()=default
 
bool operator== (const cs_class &j) const
 

Public Attributes

float x {}
 
uint32_t class_index {}
 
float partial_prediction {}
 
float wap_value {}
 

Detailed Description

if class_index > 0, then this is a "normal" example if class_index == 0, then: if x == -FLT_MAX then this is a 'shared' example if x > 0 then this is a label feature vector for (size_t)x

Constructor & Destructor Documentation

◆ cs_class() [1/2]

VW::cs_class::cs_class ( float  x,
uint32_t  class_index,
float  partial_prediction,
float  wap_value 
)
inline

◆ cs_class() [2/2]

VW::cs_class::cs_class ( )
default

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ class_index

uint32_t VW::cs_class::class_index {}

◆ partial_prediction

float VW::cs_class::partial_prediction {}

◆ wap_value

float VW::cs_class::wap_value {}

◆ x

float VW::cs_class::x {}

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