SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions
CVwAdaptiveLearner Class Reference

Detailed Description

VwAdaptiveLearner uses an adaptive subgradient technique to update weights.

It uses two elements in the weight vector per feature and maintains individual learning rates for each feature. For details, refer to the VW tutorial.

Definition at line 31 of file VwAdaptiveLearner.h.

Inheritance diagram for CVwAdaptiveLearner:
Inheritance graph
[legend]

Public Member Functions

 CVwAdaptiveLearner ()
 CVwAdaptiveLearner (CVwRegressor *regressor, CVwEnvironment *vw_env)
virtual ~CVwAdaptiveLearner ()
virtual void train (VwExample *&ex, float32_t update)
virtual const char * get_name () const
- Public Member Functions inherited from CVwLearner
 CVwLearner ()
 CVwLearner (CVwRegressor *regressor, CVwEnvironment *vw_env)
virtual ~CVwLearner ()
void register_learner_params ()
- Public Member Functions inherited from CSGObject
 CSGObject ()
 CSGObject (const CSGObject &orig)
virtual ~CSGObject ()
virtual bool is_generic (EPrimitiveType *generic) const
template<class T >
void set_generic ()
void unset_generic ()
virtual void print_serializable (const char *prefix="")
virtual bool save_serializable (CSerializableFile *file, const char *prefix="")
virtual bool load_serializable (CSerializableFile *file, const char *prefix="")
void set_global_io (SGIO *io)
SGIOget_global_io ()
void set_global_parallel (Parallel *parallel)
Parallelget_global_parallel ()
void set_global_version (Version *version)
Versionget_global_version ()
SGVector< char * > get_modelsel_names ()
char * get_modsel_param_descr (const char *param_name)
index_t get_modsel_param_index (const char *param_name)

Additional Inherited Members

- Public Attributes inherited from CSGObject
SGIOio
Parallelparallel
Versionversion
Parameterm_parameters
Parameterm_model_selection_parameters
- Protected Member Functions inherited from CSGObject
virtual void load_serializable_pre () throw (ShogunException)
virtual void load_serializable_post () throw (ShogunException)
virtual void save_serializable_pre () throw (ShogunException)
virtual void save_serializable_post () throw (ShogunException)
- Protected Attributes inherited from CVwLearner
CVwRegressorreg
 Regressor object that will be used for getting updates.
CVwEnvironmentenv
 Environment.

Constructor & Destructor Documentation

Default constructor

Definition at line 20 of file VwAdaptiveLearner.cpp.

CVwAdaptiveLearner ( CVwRegressor regressor,
CVwEnvironment vw_env 
)

Constructor, initializes regressor and environment

Parameters
regressorregressor to use
vw_envenvironment to use

Definition at line 25 of file VwAdaptiveLearner.cpp.

~CVwAdaptiveLearner ( )
virtual

Destructor

Definition at line 30 of file VwAdaptiveLearner.cpp.

Member Function Documentation

virtual const char* get_name ( ) const
virtual

Return the name of the object

Returns
VwAdaptiveLearner

Reimplemented from CVwLearner.

Definition at line 65 of file VwAdaptiveLearner.h.

void train ( VwExample *&  ex,
float32_t  update 
)
virtual

Train on one example, given the update

Parameters
exexample
updatethe update

Implements CVwLearner.

Definition at line 34 of file VwAdaptiveLearner.cpp.


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

SHOGUN Machine Learning Toolbox - Documentation