Backpropagation ANN Code - for beginner

6 views (last 30 days)
Jacky
Jacky on 9 Nov 2012
Hi,
I would like to use Matlab ANN Toolbox to train a backpropagation network. I have my algorithm works in C#; but I would still like to do a simulation in Matlab to find the best number of neurons for the hidden layer. I am using a 3-layers network; with 200 inputs, 10 hidden neurons and two output neurons.
However, I have very limited experience with ANN Toolbox; so could someone help me getting start?
I tried the nnstart but it only has 1 output in the network; so that didn't help me much.
I have my test data stored in text file. Which I can readily load into ANN.
Thanks

Answers (2)

Greg Heath
Greg Heath on 10 Nov 2012
Three examples of my sample code obtained from Answers using the two search words: heath ntrial
A1. 25 Oct 2012 Neural Network Output Problem Asked by Younes Jafari
A2. 21 Aug 2012 How can I forecast an integer related to other 5 numbers?Asked by Mehdi Abbassi
A3 1 Apr 2012 Neural Network help Asked by Amjad
============================================================================= Six examples of my sample code obtained from the Newsgroup using the two search words: heath ntrial
N1. 27 Oct 2012 Neural Network training problem Greg Heath 4 725
N2. 8 Apr 2012 FULL ADDER using neural network Greg Heath full adder, neural networks 6 951
N3. 5 Mar 2012 simple neural network question Greg Heath neural network, nn 1 531
N4. 1 Feb 2012 Validation set and Parameters in Backpropagation ANN N validation set, resilient backp...resilient backpropagation, classification 10 1161
N5. 4 Jan 2012 Elliptical Basis Function NN Design Greg Heath elliptic 0 455
N6. 3 Jan 2012 error in neural network Greg Heath index exceeds m...index exceeds matrix dimensions 5 1164
Hope this helps.
Thank you for formally accepting my answer.
Greg

Jacky
Jacky on 12 Nov 2012
Thanks Greg,
I took a look at those links, and some others in Mathworks answer community, but I didn't get much of what the Matlab code were doing as I am very naive in programming with Matlab. Do you know of where I can start learning the syntax of using ANN for matlab? And possibly, do you know of any simpler example program for backpropagation written in Matlab so that a beginner could understand?
Basically all I want is a ANN using backpropagation with n number of input, 1 hidden layer with m number of neurons and x number of output.
For testing, I would only use 200-m-2 number of neurons.
thanks
  1 Comment
Greg Heath
Greg Heath on 13 Nov 2012
Start with the examples and demos in the documentation.
Don't be afraid to ask questions.
Then choose the simplest of my examples.
Don't be afraid to ask questions.
Good Luck.
P.S. Don't be afraid to ask questions.

Sign in to comment.

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!