Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
example Struct Reference

#include <example.h>

Inheritance diagram for example:
example_predict

Public Member Functions

 example ()
 
 ~example ()
 
 example (const example &)=delete
 
exampleoperator= (const example &)=delete
 
 example (example &&other) noexcept
 
exampleoperator= (example &&other) noexcept
 
void delete_unions (void(*delete_label)(void *), void(*delete_prediction)(void *))
 
- Public Member Functions inherited from example_predict
 example_predict ()
 
 ~example_predict ()
 
 example_predict (const example_predict &)=delete
 
example_predictoperator= (const example_predict &)=delete
 
 example_predict (example_predict &&other) noexcept
 
example_predictoperator= (example_predict &&other) noexcept
 
iterator begin ()
 If indices is modified this iterator is invalidated. More...
 
iterator end ()
 If indices is modified this iterator is invalidated. More...
 

Public Attributes

polylabel l
 
polyprediction pred
 
float weight = 1.f
 
v_array< char > tag
 
size_t example_counter = 0
 
size_t num_features = 0
 
float partial_prediction = 0.f
 
float updated_prediction = 0.f
 
float loss = 0.f
 
float total_sum_feat_sq = 0.f
 
float confidence = 0.f
 
featurespassthrough
 
bool test_only = false
 
bool end_pass = false
 
bool sorted = false
 
- Public Attributes inherited from example_predict
v_array< namespace_indexindices
 
std::array< features, NUM_NAMESPACESfeature_space
 
uint64_t ft_offset
 
std::vector< std::vector< namespace_index > > * interactions
 
uint32_t _current_reduction_depth
 

Constructor & Destructor Documentation

example::example ( )
example::~example ( )
example::example ( const example )
delete
example::example ( example &&  other)
noexcept

Member Function Documentation

void example::delete_unions ( void(*)(void *)  delete_label,
void(*)(void *)  delete_prediction 
)

Example contains unions for label and prediction. These do not get cleaned up by the constructor because the type is not known at that time. To ensure correct cleanup delete_unions must be explicitly called.

example& example::operator= ( const example )
delete
example& example::operator= ( example &&  other)
noexcept

Member Data Documentation

float example::confidence = 0.f
bool example::end_pass = false
size_t example::example_counter = 0
polylabel example::l
float example::loss = 0.f
size_t example::num_features = 0
float example::partial_prediction = 0.f
features* example::passthrough
Initial value:
=
nullptr
polyprediction example::pred
bool example::sorted = false
v_array<char> example::tag
bool example::test_only = false
float example::total_sum_feat_sq = 0.f
float example::updated_prediction = 0.f
float example::weight = 1.f

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