where the index
runs over all inputs / outputs.
This function is a member of the more general class of sigmoid functions, which have the property to "squash" its inputs to a very restricted output interval.
The Hyperbolic Tangent is symmetric and its outputs lie between
. It has been said that it leads to faster convergence in training than the Logistic Sigmoid.
Functions | |
| int | gnn_tanh_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y) |
| Computes the output. | |
| int | gnn_tanh_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx) |
Computes
. | |
| gnn_node * | gnn_tanh_new (int input_size, double a, double b) |
| Creates a Hyperbolic Tangent Activation Function node. | |
| gnn_node * | gnn_tanh_standard_new (int input_size) |
| Creates a standard Hyperbolic Tangent function node. | |
| gnn_node * | gnn_tanh_enhanced_new (int input_size) |
| Creates a Hyperbolic Tangent function node. | |
| double | gnn_tanh_get_a (gnn_node *node) |
Returns the amplitude constant
. | |
| void | gnn_tanh_set_a (gnn_node *node, double a) |
Sets the amplitude constant
. | |
| double | gnn_tanh_get_b (gnn_node *node) |
Gets the streching factor
. | |
| void | gnn_tanh_set_b (gnn_node *node, double b) |
Sets the streching factor
. | |
|
||||||||||||||||||||||||
|
This functions computes the gradient of the hyperbolic tangent function, given dedy (
Definition at line 148 of file gnn_tanh.c. |
|
|
This function creates a node of the gnn_tanh type.
where
Definition at line 281 of file gnn_tanh.c. |
|
||||||||||||||||||||
|
This functions evaluates the hyperbolic tangent function.
Definition at line 101 of file gnn_tanh.c. |
|
|
Definition at line 294 of file gnn_tanh.c. |
|
|
Definition at line 320 of file gnn_tanh.c. |
|
||||||||||||||||
|
This function creates a node of the gnn_tanh type. This node computes
where
Definition at line 204 of file gnn_tanh.c. |
|
||||||||||||
|
Definition at line 307 of file gnn_tanh.c. |
|
||||||||||||
|
Definition at line 333 of file gnn_tanh.c. |
|
|
This function creates a layer of the gnn_tanh type:
where
Definition at line 262 of file gnn_tanh.c. |
1.2.18