SigmoidFunction Class Reference

Sigmoid Function. More...

Inheritance diagram for SigmoidFunction:

List of all members.

Public Member Functions

 SigmoidFunction (double l=1.0)
 Construct a sigmoid updater with parameter l.
virtual ~SigmoidFunction ()
 Destructor.
virtual void apply (DoubleVector &inputs, DoubleVector &outputs)
 Implement the updating method.
virtual void configure (ConfigurationParameters &params, QString prefix)
 Configures the object using a ConfigurationParameters object.
virtual bool derivate (const DoubleVector &x, const DoubleVector &y, DoubleVector &d) const
 return the approximation commonly used in backpropagation learning: y*(1-y)
virtual void save (ConfigurationParameters &params, QString prefix)
 Save the actual status of parameters into the ConfigurationParameters object passed.

Public Attributes

double lambda
 lambda is the slope of the curve

Detailed Description

Sigmoid Function.

Details..

Definition at line 147 of file liboutputfunctions.h.


Constructor & Destructor Documentation

SigmoidFunction ( double  l = 1.0)

Construct a sigmoid updater with parameter l.

Definition at line 121 of file liboutputfunctions.cpp.

References SigmoidFunction::lambda.

virtual ~SigmoidFunction ( ) [inline, virtual]

Destructor.

Definition at line 152 of file liboutputfunctions.h.


Member Function Documentation

void apply ( DoubleVector inputs,
DoubleVector outputs 
) [virtual]

Implement the updating method.

Implements OutputFunction.

Definition at line 125 of file liboutputfunctions.cpp.

References farsa::exp(), farsa::inv(), SigmoidFunction::lambda, and farsa::mul().

void configure ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Configures the object using a ConfigurationParameters object.

Parameters:
paramsthe configuration parameters object with parameters to use
prefixthe prefix to use to access the object configuration parameters. This is guaranteed to end with the separator character when called by the factory, so you don't need to add one

Implements ParameterSettableWithConfigureFunction.

Definition at line 139 of file liboutputfunctions.cpp.

References ConfigurationParameters::getValue(), and SigmoidFunction::lambda.

bool derivate ( const DoubleVector x,
const DoubleVector y,
DoubleVector d 
) const [virtual]

return the approximation commonly used in backpropagation learning: y*(1-y)

Reimplemented from OutputFunction.

Definition at line 131 of file liboutputfunctions.cpp.

References SigmoidFunction::lambda, and farsa::subtract().

void save ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Save the actual status of parameters into the ConfigurationParameters object passed.

Parameters:
paramsthe configuration parameters object on which save actual parameters
prefixthe prefix to use to access the object configuration parameters.

Implements ParameterSettable.

Definition at line 152 of file liboutputfunctions.cpp.

References ConfigurationParameters::createParameter(), SigmoidFunction::lambda, and ConfigurationParameters::startObjectParameters().


Member Data Documentation


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