Setting up the backpropagation pluginSunday,May 25 ,2008The neural network trainer as a standalone application works using plug in based system, in this case a DLL (Dynamic Link Library), which contains all functions used by the neural trainer. I have not posted the neural trainer code so far, because it is still on process however I will post my old code of this project. This project is my first attempt so it will be difficult to understand to you. The program is written in C++ and compiled using Visual C++. First I am going to post and explain the main header of the library for backpropagation neural network. First of all, I am going to explain all the variables and structures.
The main structure consists of three different structures linked together: double *weight; //Weights of each input of the neuron}NEURON,*LPNEURON; Structure LAYER Represents a layer of neurons of the feed-forward neural network typedef struct { LPNEURON *neuron;//Array of neurons of the layer}LAYER,*LPLAYER; Structure MLNN (multi layer neural network) typedef struct { LPLAYER *layers;//Array of layers of the neural network}MLNN,*LPMLNN; These three structure are the core of the network, they have all the information of the neural network. How it works? The program initializes all structures according to the user needs.
This how looks the rest of the file: How we setup our backpropagation network? First we call CreateNNetwork which allocates memory for the network, then we proceed to set train our patterns by setting the inputs for the neural network, the function TraiNNetwork returns the error of the network. Category Neural network trainer project Comments (1)
I Really apologize for not posting the complete source code because I need to do some changes to it in order for being understandable. Regards. You may use html tags <a href="url">Your link</a>,<b></b>,<ul><li>.
|