latest version v1.9 - last update 10 Apr 2010 |
Parent class for all activation function functors. More...
#include <ltiMLP.h>
Public Member Functions | |
virtual bool | apply (dvector &output) const =0 |
virtual bool | apply (const dvector &src, dvector &output) const =0 |
virtual bool | deriv (dvector &output) const =0 |
virtual activationFunctor * | clone () const =0 |
virtual const double & | onValue () const =0 |
virtual const double & | offValue () const =0 |
virtual bool | write (ioHandler &handler, const bool complete=true) const |
virtual bool | read (ioHandler &handler, const bool complete=true) |
Parent class for all activation function functors.
virtual bool lti::MLP::activationFunctor::apply | ( | const dvector & | src, | |
dvector & | output | |||
) | const [pure virtual] |
the functor operator.
Operates on copy
Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.
virtual bool lti::MLP::activationFunctor::apply | ( | dvector & | output | ) | const [pure virtual] |
the functor operator.
Operates on place, applying the function to each element of the vector
Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.
virtual activationFunctor* lti::MLP::activationFunctor::clone | ( | ) | const [pure virtual] |
return a copy of this functor
Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.
virtual bool lti::MLP::activationFunctor::deriv | ( | dvector & | output | ) | const [pure virtual] |
the derivative of the functor
Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.
virtual const double& lti::MLP::activationFunctor::offValue | ( | ) | const [pure virtual] |
return value used to represent "false" or "off"
Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.
virtual const double& lti::MLP::activationFunctor::onValue | ( | ) | const [pure virtual] |
return value used to represent "true" or "on"
Implemented in lti::MLP::linearActFunctor, lti::MLP::signFunctor, and lti::MLP::sigmoidFunctor.
virtual bool lti::MLP::activationFunctor::read | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | [inline, virtual] |
read the parameters from the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented in lti::MLP::sigmoidFunctor.
References lti::ioHandler::readBegin(), and lti::ioHandler::readEnd().
virtual bool lti::MLP::activationFunctor::write | ( | ioHandler & | handler, | |
const bool | complete = true | |||
) | const [inline, virtual] |
write the parameters in the given ioHandler
handler | the ioHandler to be used | |
complete | if true (the default) the enclosing begin/end will be also written, otherwise only the data block will be written. |
Reimplemented in lti::MLP::sigmoidFunctor.
References lti::ioHandler::writeBegin(), and lti::ioHandler::writeEnd().