where
and
are uniquely combined in order to run over all input indexes
, and the coefficients
are:
Note that this assures that
In other words, this function slices the input vector
into several subvectors of size
and performs a weighted sum of them.
If the input vector's size isn't a multiple of the output vector's size, that is, if
can't be written as
, then the last vector slice will consider only the remaining terms, e.g. if
and
is of size
then
Schematically, this idea can be depicted as
The function's gradients are:
and for the
:
and
where
.
Typedefs | |
| typedef _gnn_gcomm | gnn_gcomm |
| The structure for a gnn_gcomm : Generalized Committee Convergence Node. node. | |
Functions | |
| int | gnn_gcomm_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y) |
| Computes the output. | |
| int | gnn_gcomm_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx) |
Computes
. | |
| int | gnn_gcomm_dw (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dw) |
Computes
. | |
| void | gnn_gcomm_destroy (gnn_node *node) |
| Computes the output. | |
| gnn_node * | gnn_gcomm_new (size_t input_size, size_t output_size) |
| Creates an generalized committee node. | |
|
|
This datatype holds the information for a gnn_gcomm : Generalized Committee Convergence Node. node. Basically, it extends the gnn_node with special pointers to get fast accesses to the needed vector slices. Definition at line 48 of file gnn_gcomm.h. |
|
|
Definition at line 280 of file gnn_gcomm.c. |
|
||||||||||||||||||||||||
|
Definition at line 209 of file gnn_gcomm.c. |
|
||||||||||||||||||||||||
|
Definition at line 168 of file gnn_gcomm.c. |
|
||||||||||||||||||||
|
Definition at line 122 of file gnn_gcomm.c. |
|
||||||||||||
|
This function creates a node of the gnn_gcomm : Generalized Committee Convergence Node. type. The coefficients are all initialized at the same value. This is equivalent to set the
Definition at line 315 of file gnn_gcomm.c. |
1.2.18