latest version v1.9 - last update 10 Apr 2010 |
#include <ltiStdLayer.h>
Public Member Functions | |
trainFunctor () | |
virtual | ~trainFunctor () |
virtual void | setLearnRate (const double &lr) |
virtual bool | operator() (const dvector &input, dmatrix &weights, dvector &outLayer, const ivector &outID, const int &trainID, dvector &netError, bool &modified) |
virtual bool | operator() (const dvector &input, dmatrix &weights, dvector &outLayer, dvector &netError, bool &modified) |
virtual bool | operator() (const dvector &input, dmatrix &weights, dvector &outLayer, const ivector &outID, const int &trainID, bool &modified) |
virtual bool | operator() (const dvector &input, dmatrix &weights, dvector &outLayer, bool &modified) |
training functor
lti::stdLayer::trainFunctor::trainFunctor | ( | ) | [inline] |
default constructor Both neccessary since there are nets which are trained with an overall net error, not a layer error
virtual lti::stdLayer::trainFunctor::~trainFunctor | ( | ) | [inline, virtual] |
destructor
virtual bool lti::stdLayer::trainFunctor::operator() | ( | const dvector & | input, | |
dmatrix & | weights, | |||
dvector & | outLayer, | |||
const ivector & | outID, | |||
const int & | trainID, | |||
bool & | modified | |||
) | [inline, virtual] |
the functor operator for supervised training requires following parameters:
input | the input vector | |
weights | the weights matrix to be changed | |
outLayer | the output layer vector | |
outID | the class identification for each output neuron | |
trainID | the class ID for the presented vector | |
modified | indicates whether the weights were modified |
Reimplemented in lti::lvq::lvq1TrainFunctor, lti::lvq::olvq1TrainFunctor, lti::lvq::lvq3TrainFunctor, lti::lvq::olvq3TrainFunctor, and lti::lvq::lvq4TrainFunctor.
virtual bool lti::stdLayer::trainFunctor::operator() | ( | const dvector & | input, | |
dmatrix & | weights, | |||
dvector & | outLayer, | |||
const ivector & | outID, | |||
const int & | trainID, | |||
dvector & | netError, | |||
bool & | modified | |||
) | [inline, virtual] |
the functor operator for supervised training requires following parameters:
virtual void lti::stdLayer::trainFunctor::setLearnRate | ( | const double & | lr | ) | [virtual] |
set the learn rate
Reimplemented in lti::lvq::olvq1TrainFunctor, and lti::lvq::olvq3TrainFunctor.