latest version v1.9 - last update 10 Apr 2010 |
random initialization More...
#include <ltiLvq.h>
Public Member Functions | |
randInitFunctor (const dmatrix &theFeatures, const ivector &theTrainIDs, const ivector &theNbViewsObj, const int &theNbObj, const int &theNbNeurObj) | |
bool | operator() (dmatrix &weights, ivector &outID) |
Protected Attributes | |
const dmatrix & | features |
const ivector & | trainIDs |
const ivector & | nbViewsObj |
const int & | nbObj |
const int & | nbNeurObj |
random initialization
lti::lvq::randInitFunctor::randInitFunctor | ( | const dmatrix & | theFeatures, | |
const ivector & | theTrainIDs, | |||
const ivector & | theNbViewsObj, | |||
const int & | theNbObj, | |||
const int & | theNbNeurObj | |||
) |
LVQ ANNs are best initialized with the training data therefore the somewhat bulky constructor.
initialization operator
Implements lti::stdLayer::initFunctor.
const dmatrix& lti::lvq::randInitFunctor::features [protected] |
reference matrix to the features
const int& lti::lvq::randInitFunctor::nbNeurObj [protected] |
number of neuron per object
const int& lti::lvq::randInitFunctor::nbObj [protected] |
number of objects
const ivector& lti::lvq::randInitFunctor::nbViewsObj [protected] |
number of views per object
const ivector& lti::lvq::randInitFunctor::trainIDs [protected] |
reference vector to the train IDs