SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 32 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.
float32_t weight
 Weight of example.
float32_t initial
 Initial approximation.

Constructor & Destructor Documentation

VwLabel ( )

Default Constructor

Definition at line 38 of file vw_label.h.

~VwLabel ( )

Destructor

Definition at line 43 of file vw_label.h.

Member Function Documentation

float32_t get_initial ( )

Get initial value

Returns
initial value

Definition at line 73 of file vw_label.h.

float32_t get_label ( )

Get label value

Returns
label

Definition at line 49 of file vw_label.h.

float32_t get_weight ( )

Get weight

Returns
example weight

Definition at line 61 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 79 of file vw_label.h.

void set_label ( float32_t  l)

Set label value

Parameters
llabel value

Definition at line 55 of file vw_label.h.

void set_weight ( float32_t  w)

Set weight

Parameters
wexample weight

Definition at line 67 of file vw_label.h.

Member Data Documentation

float32_t initial

Initial approximation.

Definition at line 94 of file vw_label.h.

float32_t label

Label value.

Definition at line 90 of file vw_label.h.

float32_t weight

Weight of example.

Definition at line 92 of file vw_label.h.


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

SHOGUN Machine Learning Toolbox - Documentation