![]() |
MNIST-3LNN
1.0
A simple 3-layer neural network to recognize handwritten single digit numbers from the MNIST image files.
|
Neural network functionality for a 3-layer (INPUT, HIDDEN, OUTPUT) feed-forward, back-prop NN. More...
Go to the source code of this file.
Data Structures | |
| struct | Vector |
| Dynamic data structure containing defined number of values. More... | |
| struct | Node |
| Dynamic data structure modeling a neuron with a variable number of connections/weights. More... | |
| struct | Layer |
| Dynamic data structure holding a definable number of nodes that form a layer. More... | |
| struct | Network |
| Dynamic data structure holding the whole network. More... | |
Typedefs | |
| typedef struct Network | Network |
| typedef struct Layer | Layer |
| typedef struct Node | Node |
| typedef struct Vector | Vector |
| typedef enum LayerType | LayerType |
| typedef enum ActFctType | ActFctType |
Enumerations | |
| enum | LayerType { INPUT, HIDDEN, OUTPUT } |
| enum | ActFctType { SIGMOID, TANH } |
Functions | |
| Network * | createNetwork (int inpCount, int hidCount, int outCount) |
| Creates a dynamically-sized, 3-layer (INTPUT, HIDDEN, OUTPUT) neural network. More... | |
| void | feedInput (Network *nn, Vector *v) |
| Feeds some Vector data into the INPUT layer of the NN. More... | |
| void | feedForwardNetwork (Network *nn) |
| Feeds input layer values forward to hidden to output layer (calculation and activation fct) More... | |
| void | backPropagateNetwork (Network *nn, int targetClassification) |
| Back propagates network error from output layer to hidden layer. 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.
Definition in file 3lnn.h.
| typedef enum ActFctType ActFctType |
| enum ActFctType |
| void backPropagateNetwork | ( | Network * | nn, |
| int | targetClassification | ||
| ) |
| Network* createNetwork | ( | int | inpCount, |
| int | hidCount, | ||
| int | outCount | ||
| ) |
| void feedForwardNetwork | ( | Network * | nn | ) |
1.8.10