SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
所有成员列表 | Public 成员函数 | Public 属性
VwLabel类 参考

详细描述

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.h34 行定义.

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.h40 行定义.

~VwLabel ( )

Destructor

在文件 vw_label.h45 行定义.

成员函数说明

float32_t get_initial ( )

Get initial value

返回
initial value

在文件 vw_label.h75 行定义.

float32_t get_label ( )

Get label value

返回
label

在文件 vw_label.h51 行定义.

float32_t get_weight ( )

Get weight

返回
example weight

在文件 vw_label.h63 行定义.

void label_from_substring ( v_array< substring > &  words)

Parse a substring to get a label

参数
wordssubstrings, each representing a token in the label data of the format

在文件 vw_label.cpp19 行定义.

void set_initial ( float32_t  i)

Set initial value

参数
iinitial value

在文件 vw_label.h81 行定义.

void set_label ( float32_t  l)

Set label value

参数
llabel value

在文件 vw_label.h57 行定义.

void set_weight ( float32_t  w)

Set weight

参数
wexample weight

在文件 vw_label.h69 行定义.

类成员变量说明

float32_t initial

Initial approximation.

在文件 vw_label.h96 行定义.

float32_t label

Label value.

在文件 vw_label.h92 行定义.

float32_t weight

Weight of example.

在文件 vw_label.h94 行定义.


该类的文档由以下文件生成:

SHOGUN 机器学习工具包 - 项目文档