SHOGUN
v1.1.0
|
VwNonAdaptiveLearner uses a standard gradient descent weight update rule.
The weight vector is updated by adding the corresponding feature multiplied by the update factor for the example.
Definition at line 30 of file VwNonAdaptiveLearner.h.
Public Member Functions | |
CVwNonAdaptiveLearner () | |
CVwNonAdaptiveLearner (CVwRegressor *regressor, CVwEnvironment *vw_env) | |
virtual | ~CVwNonAdaptiveLearner () |
virtual void | train (VwExample *&ex, float32_t update) |
virtual const char * | get_name () const |
![]() | |
CVwLearner () | |
CVwLearner (CVwRegressor *regressor, CVwEnvironment *vw_env) | |
virtual | ~CVwLearner () |
void | register_learner_params () |
![]() | |
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) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_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 | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
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) |
![]() | |
CVwRegressor * | reg |
Regressor object that will be used for getting updates. | |
CVwEnvironment * | env |
Environment. |
Default constructor
Definition at line 20 of file VwNonAdaptiveLearner.cpp.
CVwNonAdaptiveLearner | ( | CVwRegressor * | regressor, |
CVwEnvironment * | vw_env | ||
) |
Constructor, initializes regressor and environment
regressor | regressor to use |
vw_env | environment to use |
Definition at line 25 of file VwNonAdaptiveLearner.cpp.
|
virtual |
Destructor
Definition at line 30 of file VwNonAdaptiveLearner.cpp.
|
virtual |
Return the name of the object
Reimplemented from CVwLearner.
Definition at line 64 of file VwNonAdaptiveLearner.h.
Train on one example, given the update
ex | example |
update | the update |
Implements CVwLearner.
Definition at line 34 of file VwNonAdaptiveLearner.cpp.