GClasses
|
This provides an alternative to using GActivationIdentity on the output layer for regression problems. It may add more power because it is non-linear, but like the identity function, its co-domain is the same as its domain. More...
#include <GActivation.h>
Public Member Functions | |
virtual const char * | name () |
Returns the name of this activation function. | |
virtual double | squash (double x) |
Returns the bend function of x. | |
virtual double | derivative (double x) |
Returns the derivative of the bend function. | |
virtual double | inverse (double y) |
Throws an exception. | |
virtual double | center () |
Returns 0.0. | |
virtual double | halfRange () |
Returns 1e308. | |
virtual GActivationFunction * | clone () |
See the comment for GActivationFunction::clone. |
This provides an alternative to using GActivationIdentity on the output layer for regression problems. It may add more power because it is non-linear, but like the identity function, its co-domain is the same as its domain.
virtual double GClasses::GActivationBend::center | ( | ) | [inline, virtual] |
Returns 0.0.
Implements GClasses::GActivationFunction.
virtual GActivationFunction* GClasses::GActivationBend::clone | ( | ) | [inline, virtual] |
See the comment for GActivationFunction::clone.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationBend::derivative | ( | double | x | ) | [inline, virtual] |
Returns the derivative of the bend function.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationBend::halfRange | ( | ) | [inline, virtual] |
Returns 1e308.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationBend::inverse | ( | double | y | ) | [inline, virtual] |
Throws an exception.
Implements GClasses::GActivationFunction.
virtual const char* GClasses::GActivationBend::name | ( | ) | [inline, virtual] |
Returns the name of this activation function.
Implements GClasses::GActivationFunction.
virtual double GClasses::GActivationBend::squash | ( | double | x | ) | [inline, virtual] |
Returns the bend function of x.
Implements GClasses::GActivationFunction.