Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
drwnNNGraphLSparseLearner Class Reference
Inheritance diagram for drwnNNGraphLSparseLearner:
drwnNNGraphSparseLearner drwnNNGraphLearner

Public Member Functions

 drwnNNGraphLSparseLearner (const drwnNNGraph &graph, double lambda)
 
void setTransform (const MatrixXd &Lt)
 
MatrixXd getTransform () const
 
- Public Member Functions inherited from drwnNNGraphSparseLearner
 drwnNNGraphSparseLearner (const drwnNNGraph &graph, double lambda)
 
- Public Member Functions inherited from drwnNNGraphLearner
 drwnNNGraphLearner (const drwnNNGraph &graph, double lambda)
 
virtual double learn (unsigned maxCycles)
 
const drwnNNGraphgetSrcGraph () const
 
const drwnNNGraphgetPosGraph () const
 
const drwnNNGraphgetNegGraph () const
 
void clearLabelWeights ()
 
void setLabelWeights (const vector< double > &w)
 
const vector< double > & getLabelWeights () const
 

Protected Member Functions

MatrixXd computeSubGradient ()
 
void subGradientStep (const MatrixXd &G, double alpha)
 
void startMetricCycle ()
 
- Protected Member Functions inherited from drwnNNGraphSparseLearner
virtual double computeLossFunction () const
 
- Protected Member Functions inherited from drwnNNGraphLearner
virtual double computeObjective () const
 
virtual void endMetricCycle ()
 
void updateGraphFeatures ()
 
void nearestNeighbourUpdate (unsigned nCycle, unsigned maxIterations)
 
MatrixXd initializeTransform () const
 initialize transform as feature whitener (diagonal Mahalanobis)
 

Protected Attributes

MatrixXd _Lt
 
MatrixXd _G
 
drwnNNGraphNodeAnnotation
< drwnNNGraphLearnSparseViolatedConstraint
_updateCache
 
- Protected Attributes inherited from drwnNNGraphLearner
const drwnNNGraph_graph
 
double _lambda
 
vector< double > _labelWeights
 
drwnNNGraph _posGraph
 
drwnNNGraph _negGraph
 
unsigned _dim
 feature vector dimensions
 
MatrixXd _X
 cached (x_u - x_v) (x_u - x_v)^T
 

Additional Inherited Members

- Static Public Attributes inherited from drwnNNGraphLearner
static double ALPHA_ZERO = 5.0e-6
 
static unsigned METRIC_ITERATIONS = 500
 
static unsigned SEARCH_ITERATIONS = 20
 

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