Vowpal Wabbit
Public Member Functions | Public Attributes | Friends | 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)=default
 
exampleoperator= (example &&other)=default
 
size_t get_num_features () const noexcept
 
float get_total_sum_feat_sq ()
 
void reset_total_sum_feat_sq ()
 
- Public Member Functions inherited from example_predict
 example_predict ()=default
 
 ~example_predict ()=default
 
 example_predict (const example_predict &)=delete
 
example_predictoperator= (const example_predict &)=delete
 
 example_predict (example_predict &&other)=default
 
example_predictoperator= (example_predict &&other)=default
 
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
 
size_t num_features_from_interactions = 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
 
bool is_newline = false
 
bool in_use
 
- Public Attributes inherited from example_predict
v_array< namespace_indexindices
 
std::array< features, NUM_NAMESPACESfeature_space
 
uint64_t ft_offset = 0
 
std::vector< std::vector< namespace_index > > * interactions = nullptr
 
reduction_features _reduction_features
 
uint32_t _debug_current_reduction_depth = 0
 

Friends

void VW::copy_example_data (example *dst, const example *src)
 
void VW::setup_example (vw &all, example *ae)
 

Constructor & Destructor Documentation

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

Member Function Documentation

size_t example::get_num_features ( ) const
inlinenoexcept
float example::get_total_sum_feat_sq ( )
inline
example& example::operator= ( const example )
delete
example& example::operator= ( example &&  other)
default
void example::reset_total_sum_feat_sq ( )
inline

Friends And Related Function Documentation

void VW::copy_example_data ( example dst,
const example src 
)
friend
void VW::setup_example ( vw all,
example ae 
)
friend

Member Data Documentation

float example::confidence = 0.f
bool example::end_pass = false
size_t example::example_counter = 0
bool example::in_use
bool example::is_newline = false
polylabel example::l
float example::loss = 0.f
size_t example::num_features = 0
size_t example::num_features_from_interactions = 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: