#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "nn.h"
Functions | |
double | nnGetLayerError (nnLayer *layer) |
Calculate error of nodes in a layer. | |
double | nnGetLayerRMSError (nnLayer *layer) |
Calculate RMS error of nodes in a layer. | |
void | nnIterateNetworkNodes (nnNet *net, void(*f)(nnLayer *layer, nnNode *node, void *data), void *data) |
Call a function for each node in a network. | |
void | nnIterateNetworkLinks (nnNet *net, void(*f)(nnNode *dest, nnLink *link, void *data), void *data) |
Call a function for each link in a network. | |
void | nnDestroyNetwork (nnNet *net) |
free() a network and all associated structures. | |
nnNet * | nnCreateFullyConnectedNetwork (int nlayers, const int nnodes[]) |
Create a fully-connected network. | |
nnNet * | nnCopyNetwork (nnNet *net) |
Make a deep-copy of a network. |
|
Make a deep-copy of a network. Performs a deep-copy of a network. The new network will be an exact copy of source, having the same topology, weights, etc.
|
|
Create a fully-connected network. Creates a fully-connected neural network with nlayers layers. The first layer will have nnodes[0] nodes in it, the second layer will have nnodes[1] nodes in it, etc. The network will have a bias node.
|
|
free() a network and all associated structures. Frees a network and all associated structures (layers, nodes, links). Any non-NULL structure pointers are recursively freed.
|
|
Calculate error of nodes in a layer.
|
|
Calculate RMS error of nodes in a layer.
|
|
Call a function for each link in a network.
|
|
Call a function for each node in a network. Calls func for each node in a network, including the bias node, if any. args is passed to func as the argument data. func's layer argument will be NULL for the bias node.
|
|
Initial value:
"$Id: nnutil.c 319 2003-02-22 08:57:23Z asaddi $" |