Neural network functionality for a 3-layer (INPUT, HIDDEN, OUTPUT) feed-forward, back-prop NN.
More...
|
Node * | getNode (Layer *l, int nodeId) |
|
Layer * | getLayer (Network *nn, LayerType ltype) |
| Returns one of the layers of the network. More...
|
|
double | getActFctDerivative (Network *nn, LayerType ltype, double outVal) |
| Returns the result of applying the given outputValue to the derivate of the activation function. More...
|
|
void | updateNodeWeights (Network *nn, LayerType ltype, int id, double error) |
| Updates a node's weights based on given error. More...
|
|
void | backPropagateHiddenLayer (Network *nn, int targetClassification) |
| Back propagates network error to hidden layer. More...
|
|
void | backPropagateOutputLayer (Network *nn, int targetClassification) |
| Back propagates network error in output layer. More...
|
|
void | backPropagateNetwork (Network *nn, int targetClassification) |
| Back propagates network error from output layer to hidden layer. More...
|
|
void | activateNode (Network *nn, LayerType ltype, int id) |
| Performs an activiation function (as defined in the NN's defaults) to a specified node. More...
|
|
void | calcNodeOutput (Network *nn, LayerType ltype, int id) |
| Calculates the output value of a specified node by multiplying all its weights with the previous layer's outputs. More...
|
|
void | calcLayer (Network *nn, LayerType ltype) |
| Calculates the output values of a given NN layer. More...
|
|
void | feedForwardNetwork (Network *nn) |
| Feeds input layer values forward to hidden to output layer (calculation and activation fct) More...
|
|
void | feedInput (Network *nn, Vector *v) |
| Feeds some Vector data into the INPUT layer of the NN. More...
|
|
Layer * | createInputLayer (int inpCount) |
|
Layer * | createLayer (int nodeCount, int weightCount) |
|
void | initNetwork (Network *nn, int inpCount, int hidCount, int outCount) |
| Initializes the NN by creating and copying INTPUT, HIDDEN, OUTPUT data structures into the NN's memory space. More...
|
|
void | setNetworkDefaults (Network *nn) |
| Sets the default network parameters (which can be overwritten/changed) More...
|
|
void | initWeights (Network *nn, LayerType ltype) |
| Initializes a layer's weights with random values. More...
|
|
Network * | createNetwork (int inpCount, int hidCount, int outCount) |
| Creates a dynamically-sized, 3-layer (INTPUT, HIDDEN, OUTPUT) neural network. More...
|
|
int | getNetworkClassification (Network *nn) |
| Returns the network's classification using the ID of teh node with the hightest output. More...
|
|
Neural network functionality for a 3-layer (INPUT, HIDDEN, OUTPUT) feed-forward, back-prop NN.
- Author
- Matt Lind
- Date
- August 2015
Definition in file 3lnn.c.