Main Page   Data Structures   File List   Data Fields   Globals  

nnbackprop.c File Reference

Back-propagation learning functions. More...

#include "nn.h"

Functions

void nnCalculateOutputLayerError (nnLayer *layer, const double targets[])
 Calculate error of the output layer.

void nnCalculateHiddenLayerError (nnLayer *layer, nnLayer *nextLayer)
 Calculate error of a hidden layer.

void nnUpdateLayer (nnLayer *layer, nnNet *net)
 Update weights of a layer.

void nnUpdateNetwork (nnNet *net, const double targets[])
 Update weights of a network.


Detailed Description

Back-propagation learning functions.


Function Documentation

void nnCalculateHiddenLayerError nnLayer   layer,
nnLayer   nextLayer
 

Calculate error of a hidden layer.

Parameters:
layer  Hidden layer.
nextLayer  The layer which the hidden layer feeds to.

void nnCalculateOutputLayerError nnLayer   layer,
const double    targets[]
 

Calculate error of the output layer.

Parameters:
layer  Output layer.
targets  Target values from which to calculate the error from.

void nnUpdateLayer nnLayer   layer,
nnNet   net
 

Update weights of a layer.

Parameters:
layer  Layer to update.
net  Network which layer is from.

void nnUpdateNetwork nnNet   net,
const double    targets[]
 

Update weights of a network.

Parameters:
net  Network to adjust weights of.
targets  Output target values.


Variable Documentation

const char rcsid[] [static]
 

Initial value:

        "$Id: nnbackprop.c 319 2003-02-22 08:57:23Z asaddi $"


Generated on Sat Feb 22 03:39:25 2003 for nn by doxygen1.2.18