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.
在文件 vw_label.h 第 34 行定义.
Public 成员函数 | |
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 属性 | |
float32_t | label |
Label value. 更多... | |
float32_t | weight |
Weight of example. 更多... | |
float32_t | initial |
Initial approximation. 更多... | |
VwLabel | ( | ) |
Default Constructor
在文件 vw_label.h 第 40 行定义.
~VwLabel | ( | ) |
Destructor
在文件 vw_label.h 第 45 行定义.
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 |
在文件 vw_label.cpp 第 19 行定义.
void set_initial | ( | float32_t | i | ) |
void set_label | ( | float32_t | l | ) |
void set_weight | ( | float32_t | w | ) |
float32_t initial |
Initial approximation.
在文件 vw_label.h 第 96 行定义.
float32_t label |
Label value.
在文件 vw_label.h 第 92 行定义.
float32_t weight |
Weight of example.
在文件 vw_label.h 第 94 行定义.