Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

gnn_node.c File Reference

#include <assert.h>
#include <stdarg.h>
#include <gsl/gsl_block.h>
#include <string.h>
#include "gnn_utilities.h"
#include "gnn_node.h"

Include dependency graph for gnn_node.c:

Include dependency graph

Go to the source code of this file.

Functions

void gnn_node_destroy_structure (gnn_node *node)
 Destroys a gnn_node.

int gnn_node_default_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y)
 Default evaluation function.

int gnn_node_default_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx)
 Default evaluation function.

int gnn_node_default_dw (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dw)
 Default evaluation function.

void gnn_node_default_destructor (gnn_node *node)
 Default gnn_node destructor.

int gnn_node_sub_search_params_recurse (gnn_node *node, const char *type, gnn_pbundle *pb)
 The recursive function for parameters searchs.

int gnn_node_is_root (gnn_node *node)
 Check if node is root node.

const char * gnn_node_get_type_name (gnn_node *node)
 Get the node's type.

int gnn_node_input_get_size (gnn_node *node)
 Get the node's input size.

int gnn_node_output_get_size (gnn_node *node)
 Get the node's output size.

int gnn_node_destroy (gnn_node *node)
 Destroys the current node.

int gnn_node_evaluate_f (gnn_node *node, const gsl_vector *x, gsl_vector *y)
 Evaluates the output of the function recursively.

int gnn_node_evaluate_init (gnn_node *node)
 Initializes the evaluations.

int gnn_node_evaluate_dx (gnn_node *node, const gsl_vector *dy, gsl_vector *dx)
 Evaluates the gradient .

int gnn_node_evaluate_dw (gnn_node *node, gsl_vector *dw)
 Evaluates the gradient .

int gnn_node_param_get_size (gnn_node *node)
 Returns the size of the parameter vector.

int gnn_node_param_get (gnn_node *node, gsl_vector *w)
 Get the node's parameters.

int gnn_node_param_set (gnn_node *node, const gsl_vector *w)
 Sets new values for the parameter vector.

int gnn_node_param_freeze_flags_get (gnn_node *node, gsl_vector_int *f)
 Get the freeze flags.

int gnn_node_param_freeze_flags_set (gnn_node *node, const gsl_vector_int *f)
 Sets new freeze flags.

int gnn_node_param_freeze (gnn_node *node, int i)
 Freeze the i-th parameter.

int gnn_node_param_unfreeze (gnn_node *node, int i)
 Unfreeze the i-th parameter.

int gnn_node_param_is_frozen (gnn_node *node, int i)
 Check if the i-th parameter is frozen.

int gnn_node_param_are_frozen (gnn_node *node)
 Check if all the node's parameters are frozen.

int gnn_node_param_freeze_all (gnn_node *node)
 Freeze all parameters.

int gnn_node_param_unfreeze_all (gnn_node *node)
 Unfreeze all parameters.

int gnn_node_param_share (const gnn_node *node, gnn_node *client)
 Share the node's parameters.

int gnn_node_init (gnn_node *node, const char *type, gnn_node_f f, gnn_node_df dx, gnn_node_df dw, gnn_node_destructor dest)
 Initializes a gnn_node structure.

int gnn_node_set_sizes (gnn_node *node, int n, int m, int l)
 Set the node's sizes.

gsl_vector * gnn_node_local_get_w (gnn_node *node)
 Get local parameters.

gsl_vector * gnn_node_local_get_dw (gnn_node *node)
 Get local parameter gradients.

gsl_vector_int * gnn_node_local_get_f (gnn_node *node)
 Get local parameters frozen flags.

int gnn_node_local_update (gnn_node *node)
 Get local parameters.

int gnn_node_eval_f (gnn_node *node, const gsl_vector *x, gsl_vector *y)
 Evaluates the output of the function recursively.

int gnn_node_eval_dx (gnn_node *node, const gsl_vector *dy, gsl_vector *dx)
 Evaluates recursively.

int gnn_node_eval_dw (gnn_node *node)
 Evaluates recursively.

int gnn_node_sub_install_specific (gnn_node *node, int nsub,...)
 Install subnodes.

int gnn_node_sub_install (gnn_node *node, int nsub, va_list subs)
 Install subnodes.

int gnn_node_sub_install_node_vector (gnn_node *node, gnn_node_vector *vector)
 Install the nodes in the node vector as subnodes.

int gnn_node_sub_get_number (gnn_node *node)
 Get the number of subnodes.

gnn_nodegnn_node_sub_get_node_at (gnn_node *node, int i)
 Get's the node's i-th subnode.

gnn_pbundlegnn_node_sub_search_params (gnn_node *node, const char *type)
 Get all subnodes of a given type.


Generated on Sun Jun 13 20:50:59 2004 for libgnn Gradient Retropropagation Machine Library by doxygen1.2.18