Code covered by the BSD License  

Highlights from

Be the first to rate this file! 31 Downloads (last 30 days) File Size: 360 KB File ID: #32445 Version: 1.3




06 Aug 2011 (Updated )

Rprop training for Artificial Neural Networks

| Watch this File

File Information

One of the training methods for Artificial Neural Networks is the Resilient Propagation (Rprop). Rprop is usually faster compared to the classical Backpropagation. In this package 4 different Rprop algorithms present in the literature are specifically implemented to train an ANN: Rprop+, Rprop-, IRprop+, IRprop-.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
06 Nov 2015 Katharina Rombach


I am just getting started, so still very confused: Is it crucial for the rprop-optimization that the NN has an hidden layer with nn.nlabels? Am I right that nn.nlabels equals the number of different values in train_out?

Now, when I am learning a Q-function i.e. I repeat to generate samples with different targets and then use Rprop. If I have to change my NN every time I am looking at a new data set the learning will fail, right?

Is there a good solution?
I hope it is understandable...

Comment only
27 Mar 2015 Idil Selin

Yes, it works. Thank you very much:)

Comment only
27 Mar 2015 Roberto Calandra

Hi Idil,
when you call RNN.lab2class(train_out); RNN is not supposed to be the NN, but just the function lab2class inside the folder +RNN. Did you added the folder where the package is to your path? remember that you cannot add just the package folder.

For more info:

Let me know if it is working :)

Comment only
22 Mar 2015 Idil Selin

Dear Roberto,
thank you very much for your code. Unfortunately, I do NOT manage to run it. Can you direct me? Where shall I start from? I guess that I need to create a RNN first. Shall I call the init_nn() function from the command window? Which are the parameters?
Demo_RProp_1 fails at line 26, where it calls RNN.lab2class(train_out); ... obviously, since there is no NN.
Thank you in advance for your explanations.

Comment only
29 Aug 2013 Roberto Calandra

Hi Matthew,
Yes, the answer is that you can use the same data set for both training and testing. You can do that by setting the test set (test_in in the Demos) equal to the training set (test_in).

Comment only
26 Aug 2013 Matthew

Hi, was wondering if i have a set of data with 150 samples. Then can i use your network to perform training then after that perform testing to compare the output of the testing set matching the result.

Comment only
12 Aug 2011 1.2

Improved the documentation and added a second demo. only small changes in the code.

23 Aug 2011 1.3

Another bit of documentation added

Contact us