GClasses
|
This is an experimental activation function intended to reduce the required computation involved in inverting neural networks. More...
#include <GActivation.h>
Public Member Functions | |
virtual const char * | name () |
Returns the name of this activation function. | |
virtual double | squash (double x) |
The activation function. | |
virtual double | derivative (double x) |
The derivative of the activation function. | |
virtual double | inverse (double y) |
The inverse of the activation function. (This function may throw an exception if the activation function cannot be inverted.) | |
virtual double | derivativeOfNet (double net, double activation) |
Returns y*(1.0-y) | |
virtual double | center () |
Returns 0.5. | |
virtual double | halfRange () |
Returns 0.5. | |
virtual GActivationFunction * | clone () |
See the comment for GActivationFunction::clone. |
This is an experimental activation function intended to reduce the required computation involved in inverting neural networks.
virtual double GClasses::GActivationPiecewise::center | ( | ) | [inline, virtual] |
Returns 0.5.
Implements GClasses::GActivationFunction.
virtual GActivationFunction* GClasses::GActivationPiecewise::clone | ( | ) | [inline, virtual] |
See the comment for GActivationFunction::clone.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationPiecewise::derivative | ( | double | x | ) | [inline, virtual] |
The derivative of the activation function.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationPiecewise::derivativeOfNet | ( | double | net, |
double | activation | ||
) | [inline, virtual] |
Returns y*(1.0-y)
Reimplemented from GClasses::GActivationFunction.
virtual double GClasses::GActivationPiecewise::halfRange | ( | ) | [inline, virtual] |
Returns 0.5.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationPiecewise::inverse | ( | double | y | ) | [inline, virtual] |
The inverse of the activation function. (This function may throw an exception if the activation function cannot be inverted.)
Implements GClasses::GActivationFunction.
virtual const char* GClasses::GActivationPiecewise::name | ( | ) | [inline, virtual] |
Returns the name of this activation function.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationPiecewise::squash | ( | double | x | ) | [virtual] |
The activation function.
Implements GClasses::GActivationFunction.