Example class for VW.
It contains a label object pointer. These objects should be returned by the parser.
在文件 vw_example.h 第 58 行定义.
Public 成员函数 | |
| VwExample () | |
| ~VwExample () | |
| void | reset_members () |
Public 属性 | |
| VwLabel * | ld |
| Label object. 更多... | |
| v_array< char > | tag |
| Tag. 更多... | |
| v_array< vw_size_t > | indices |
| Array of namespaces. 更多... | |
| v_array< VwFeature > | atomics [256] |
| Array of features. 更多... | |
| vw_size_t | num_features |
| Number of features. 更多... | |
| vw_size_t | pass |
| Pass. 更多... | |
| float32_t | final_prediction |
| Final prediction. 更多... | |
| float32_t | loss |
| Loss. 更多... | |
| float32_t | eta_round |
| Learning rate for this round. 更多... | |
| float32_t | global_weight |
| Global weight. 更多... | |
| float32_t | example_t |
| t value for this example 更多... | |
| float64_t | sum_feat_sq [256] |
| Sum of square of features. 更多... | |
| float32_t | total_sum_feat_sq |
| Total sum of square of features. 更多... | |
| vw_size_t | example_counter |
| Example counter. 更多... | |
| bool | sorted |
| Whether features are sorted by weight index. 更多... | |
| VwExample | ( | ) |
Constructor
在文件 vw_example.cpp 第 19 行定义.
| ~VwExample | ( | ) |
Destructor
在文件 vw_example.cpp 第 28 行定义.
| void reset_members | ( | ) |
Resets the members so the values can be updated directly without constructing another object.
在文件 vw_example.cpp 第 34 行定义.
Array of features.
在文件 vw_example.h 第 86 行定义.
| float32_t eta_round |
Learning rate for this round.
在文件 vw_example.h 第 97 行定义.
| vw_size_t example_counter |
Example counter.
在文件 vw_example.h 第 109 行定义.
| float32_t example_t |
t value for this example
在文件 vw_example.h 第 101 行定义.
| float32_t final_prediction |
Final prediction.
在文件 vw_example.h 第 93 行定义.
| float32_t global_weight |
Global weight.
在文件 vw_example.h 第 99 行定义.
Array of namespaces.
在文件 vw_example.h 第 84 行定义.
| VwLabel* ld |
Label object.
在文件 vw_example.h 第 79 行定义.
| float32_t loss |
Loss.
在文件 vw_example.h 第 95 行定义.
| vw_size_t num_features |
Number of features.
在文件 vw_example.h 第 89 行定义.
| vw_size_t pass |
Pass.
在文件 vw_example.h 第 91 行定义.
| bool sorted |
Whether features are sorted by weight index.
在文件 vw_example.h 第 111 行定义.
| float64_t sum_feat_sq[256] |
Sum of square of features.
在文件 vw_example.h 第 104 行定义.
| v_array<char> tag |
Tag.
在文件 vw_example.h 第 82 行定义.
| float32_t total_sum_feat_sq |
Total sum of square of features.
在文件 vw_example.h 第 106 行定义.