|
Vowpal Wabbit
|
#include <example.h>
Public Member Functions | |
| example () | |
| ~example () | |
| example (const example &)=delete | |
| example & | operator= (const example &)=delete |
| example (example &&other) noexcept | |
| example & | operator= (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_predict & | operator= (const example_predict &)=delete |
| example_predict (example_predict &&other) noexcept | |
| example_predict & | operator= (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 |
| features * | passthrough |
| bool | test_only = false |
| bool | end_pass = false |
| bool | sorted = false |
Public Attributes inherited from example_predict | |
| v_array< namespace_index > | indices |
| std::array< features, NUM_NAMESPACES > | feature_space |
| uint64_t | ft_offset |
| std::vector< std::vector< namespace_index > > * | interactions |
| uint32_t | _current_reduction_depth |
| example::example | ( | ) |
| example::~example | ( | ) |
|
delete |
|
noexcept |
| 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.
| 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 |
| 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 |
1.8.11