where the index
runs over all inputs / outputs. The amplitude factors
and the biases
are independent and can be trained. Usually, this activation function is placed after a non-linear activation function which is limited in its output range, like a gaussian, logistic sigmoid or a hyperbolic tangent activation function, to scale the outputs to the correct magnitudes.
The function's gradients are:
with respect to its inputs, and
with respect to its parameters.
Typedefs | |
| typedef _gnn_affine | gnn_affine |
| The structure for a gnn_affine : Affine Activation Function. node. | |
Functions | |
| int | gnn_affine_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y) |
| Computes the output. | |
| int | gnn_affine_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx) |
Computes
. | |
| int | gnn_affine_dw (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dw) |
Computes
. | |
| void | gnn_affine_destroy (gnn_node *node) |
| Destructor function. | |
| gnn_node * | gnn_affine_new (int input_size, double a, double b) |
| Creates an Affine Activation Function node. | |
| gnn_node * | gnn_affine_standard_new (int input_size) |
| Creates a standard Affine Activation Function node. | |
|
|
This datatype holds the information for a gnn_affine : Affine Activation Function. node. Basically, it extends the gnn_node with special pointers to get fast accesses to the amplitudes and variances. Definition at line 48 of file gnn_affine.h. |
|
|
Definition at line 205 of file gnn_affine.c. |
|
||||||||||||||||||||||||
|
Definition at line 172 of file gnn_affine.c. |
|
||||||||||||||||||||||||
|
Definition at line 137 of file gnn_affine.c. |
|
||||||||||||||||||||
|
Definition at line 102 of file gnn_affine.c. |
|
||||||||||||||||
|
This function creates a node of the gnn_affine type. Although the parameters
Definition at line 235 of file gnn_affine.c. |
|
|
This function creates a node of the gnn_affine type. The parameters are initialized with amplitudes
Definition at line 340 of file gnn_affine.c. |
1.2.18