where
.
The different outputs
of the softmax function are normalized: they sum all up to 1. Softmax outputs lie in the interval
, and they can be interpreted as probabilities.
Functions | |
| int | gnn_softmax_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y) |
| Computes the output. | |
| int | gnn_softmax_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx) |
Computes
. | |
| void | gnn_softmax_destroy (gnn_node *node) |
| Destroys the gnn_softmax specific data. | |
| gnn_node * | gnn_softmax_new (int input_size) |
| Creates a Softmax activation function node. | |
|
|
This is the destructor for gnn_softmax nodes.
Definition at line 206 of file gnn_softmax.c. |
|
||||||||||||||||||||||||
|
This functions computes the gradient of the softmax function, given
Definition at line 153 of file gnn_softmax.c. |
|
||||||||||||||||||||
|
This functions evaluates the softmax function.
Definition at line 94 of file gnn_softmax.c. |
|
|
This function creates a node of the gnn_softmax type.
Definition at line 237 of file gnn_softmax.c. |
1.2.18