|
SHOGUN
4.1.0
|
Class VwLabel holds a label object used by VW.
Has 3 members: the label value, weight of the example and initial value of the label.
Definition at line 34 of file vw_label.h.
Public Member Functions | |
| VwLabel () | |
| ~VwLabel () | |
| float32_t | get_label () |
| void | set_label (float32_t l) |
| float32_t | get_weight () |
| void | set_weight (float32_t w) |
| float32_t | get_initial () |
| void | set_initial (float32_t i) |
| void | label_from_substring (v_array< substring > &words) |
Public Attributes | |
| float32_t | label |
| Label value. More... | |
| float32_t | weight |
| Weight of example. More... | |
| float32_t | initial |
| Initial approximation. More... | |
| VwLabel | ( | ) |
Default Constructor
Definition at line 40 of file vw_label.h.
| ~VwLabel | ( | ) |
Destructor
Definition at line 45 of file vw_label.h.
| float32_t get_initial | ( | ) |
| float32_t get_label | ( | ) |
| float32_t get_weight | ( | ) |
Parse a substring to get a label
| words | substrings, each representing a token in the label data of the format |
Definition at line 19 of file vw_label.cpp.
| void set_initial | ( | float32_t | i | ) |
| void set_label | ( | float32_t | l | ) |
| void set_weight | ( | float32_t | w | ) |
| float32_t initial |
Initial approximation.
Definition at line 96 of file vw_label.h.
| float32_t label |
Label value.
Definition at line 92 of file vw_label.h.
| float32_t weight |
Weight of example.
Definition at line 94 of file vw_label.h.