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

gnn_gaussian : Gaussian Kernel Activation Function.
[Atomic Nodes.]


Detailed Description

This node type implements a Gaussian Kernel activation function given by:

where the index runs over all inputs / outputs, and

This function is a member of the more general class of kernel functions. They are intended to work in combination with a prototype node (gnn_prototype : Prototypes.).

The function's gradients are:

with respect to its inputs, and

with respect to its parameters.

Typedefs

typedef _gnn_gaussian gnn_gaussian
 The structure for a gnn_gaussian : Gaussian Kernel Activation Function. node.


Functions

int gnn_gaussian_f (gnn_node *node, const gsl_vector *x, const gsl_vector *w, gsl_vector *y)
 Computes the output.

int gnn_gaussian_dx (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dx)
 Computes .

int gnn_gaussian_dw (gnn_node *node, const gsl_vector *x, const gsl_vector *w, const gsl_vector *dy, gsl_vector *dw)
 Computes .

void gnn_gaussian_destroy (gnn_node *node)
 Computes the output.

gnn_nodegnn_gaussian_new (int input_size, double a, double v)
 Creates a Gaussian Kernel Activation Function node.

gnn_nodegnn_gaussian_standard_new (int input_size)
 Creates a standard Gaussian Kernel Activation Function node.


Typedef Documentation

typedef struct _gnn_gaussian gnn_gaussian
 

This datatype holds the information for a gnn_gaussian : Gaussian Kernel 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_gaussian.h.


Function Documentation

void gnn_gaussian_destroy gnn_node   node [static]
 

This is the destructor for a gnn_gaussian : Gaussian Kernel Activation Function. node.

Parameters:
node  A pointer to the gnn_gaussian : Gaussian Kernel Activation Function. node.

Definition at line 263 of file gnn_gaussian.c.

int gnn_gaussian_dw gnn_node   node,
const gsl_vector *    x,
const gsl_vector *    w,
const gsl_vector *    dy,
gsl_vector *    dw
[static]
 

This functions computes the gradient with respect to the parameters of the Gaussian Kernel function. That is, it computes and .

Parameters:
node  A pointer to the gnn_gaussian : Gaussian Kernel Activation Function. node.
x  The input vector .
w  The parameter vector .
dy  The vector .
dx  The output buffer vector .
Returns:
Returns 0 on success.

Definition at line 209 of file gnn_gaussian.c.

int gnn_gaussian_dx gnn_node   node,
const gsl_vector *    x,
const gsl_vector *    w,
const gsl_vector *    dy,
gsl_vector *    dx
[static]
 

This functions computes the gradient with respect to the inputs of the Gaussian Kernel function.

Parameters:
node  A pointer to the gnn_gaussian : Gaussian Kernel Activation Function. node.
x  The input vector .
w  The parameter vector .
dy  The vector .
dx  The output buffer vector .
Returns:
Returns 0 on success.

Definition at line 153 of file gnn_gaussian.c.

int gnn_gaussian_f gnn_node   node,
const gsl_vector *    x,
const gsl_vector *    w,
gsl_vector *    y
[static]
 

This functions evaluates the Gaussian Kernel activation function.

Parameters:
node  A pointer to the gnn_gaussian : Gaussian Kernel Activation Function. node.
x  The input vector .
w  The parameter vector .
y  The output buffer vector .
Returns:
Returns 0 on success.

Definition at line 103 of file gnn_gaussian.c.

gnn_node* gnn_gaussian_new int    input_size,
double    a,
double    v
 

This function creates a node of the gnn_gaussian type. All kernels are initialized with the same amplitude and variance.

Parameters:
input_size  The input size .
a  The (amplitude) factor.
v  The variance .
Returns:
A pointer to a new gnn_divergence : Input Divergence. node.

Definition at line 292 of file gnn_gaussian.c.

gnn_node* gnn_gaussian_standard_new int    input_size
 

This function creates a node of the gnn_gaussian type. All kernels are initialized with amplitude and variance .

Parameters:
input_size  The input size .
Returns:
A pointer to a new gnn_tanh node.

Definition at line 404 of file gnn_gaussian.c.


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