TrueSGD< T > Class Template Reference

This class extends IncrementalSGD and implements TrueSGD. More...

#include <incremental_sgd.h>

Inheritance diagram for TrueSGD< T >:

IncrementalSGD< T > List of all members.

Public Member Functions

 TrueSGD (int dim, double lambda)
 Constructor that initializes TrueSGD.
bool addExample (int y, T ex)
 Uses the given example to train the model.

Detailed Description

template<class T>
class TrueSGD< T >

This class extends IncrementalSGD and implements TrueSGD.

This means that at each iteration, model changes


Constructor & Destructor Documentation

template<class T>
TrueSGD< T >::TrueSGD ( int  dim,
double  lambda 
) [inline]

Constructor that initializes TrueSGD.

Parameters:
[in] dim dimension of the model
[in] lambda lambda value


Member Function Documentation

template<class T>
bool TrueSGD< T >::addExample ( int  y,
ex 
) [virtual]

Uses the given example to train the model.

Parameters:
[in] y class of the example
[in] ex feature vector of the example
Returns:
whether model changed or not

Implements IncrementalSGD< T >.


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 10:46:16 2010 for Hazy_System by  doxygen 1.4.7