LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::stdLayer::trainFunctor Class Reference

training functor More...

#include <ltiStdLayer.h>

Inheritance diagram for lti::stdLayer::trainFunctor:
Inheritance graph
[legend]
Collaboration diagram for lti::stdLayer::trainFunctor:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

training functor


Constructor & Destructor Documentation

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


Member Function Documentation

virtual bool lti::stdLayer::trainFunctor::operator() ( const dvector input,
dmatrix weights,
dvector outLayer,
bool &  modified 
) [inline, virtual]

the functor operator for unsupervised training requires following parameters:

Parameters:
input the input vector
weights the weights matrix to be changed
outLayer the output layer vector
modified indicates whether the weights were modified
Returns:
true if successful, false otherwise
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:

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
Returns:
true if successful, false otherwise

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,
dvector netError,
bool &  modified 
) [inline, virtual]

the functor operator for unsupervised training requires following parameters:

Parameters:
input the input vector
weights the weights matrix to be changed
outLayer the output layer vector
netError the error of the layer
modified indicates whether the weights were modified
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:

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
netError the error of the layer
modified indicates whether the weights were modified
virtual void lti::stdLayer::trainFunctor::setLearnRate ( const double &  lr  )  [virtual]

set the learn rate

Reimplemented in lti::lvq::olvq1TrainFunctor, and lti::lvq::olvq3TrainFunctor.


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

Generated on Sat Apr 10 15:27:00 2010 for LTI-Lib by Doxygen 1.6.1