SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Member Functions | Public Attributes
VwLabel Class Reference

Detailed Description

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...
 

Constructor & Destructor Documentation

VwLabel ( )

Default Constructor

Definition at line 40 of file vw_label.h.

~VwLabel ( )

Destructor

Definition at line 45 of file vw_label.h.

Member Function Documentation

float32_t get_initial ( )

Get initial value

Returns
initial value

Definition at line 75 of file vw_label.h.

float32_t get_label ( )

Get label value

Returns
label

Definition at line 51 of file vw_label.h.

float32_t get_weight ( )

Get weight

Returns
example weight

Definition at line 63 of file vw_label.h.

void label_from_substring ( v_array< substring > &  words)

Parse a substring to get a label

Parameters
wordssubstrings, 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)

Set initial value

Parameters
iinitial value

Definition at line 81 of file vw_label.h.

void set_label ( float32_t  l)

Set label value

Parameters
llabel value

Definition at line 57 of file vw_label.h.

void set_weight ( float32_t  w)

Set weight

Parameters
wexample weight

Definition at line 69 of file vw_label.h.

Member Data Documentation

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.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation