I am new to neural networks in R. I am trying to emulate the following behavior implemented using neuroph in java.
Type - Multi Layer Perceptron, Inputs - 7, Outputs - 1, Hidden - 5 neurons, Transfer Function - sigmoid, Learning Rule - Back propagation, Max error - 0.01, learning rate - 0.2
Following is the R code I implemented.
net.result <- neuralnet(Output ~ Input1 + Input2 + Input3 + Input4 + Input5 + Input6 + Input7,
traindata, algorithm = "backprop", hidden = 5,
threshold = 0.01, learningrate = 0.2, act.fct = "logistic",
linear.output = FALSE, rep =50, stepmax = 100)
The data is relatively small (120 lines) and following is a sample of the training data used. Note that the inputs are normalized and scaled between 0 and 1.
Input1 Input2 Input3 Input4 Input5 Input6 Input7 Output
1 0 0 0 0 0 0 0 0
2 0 0 0 0 0 1 0.0192307692 0
3 0 0 0 0 1 0 0.125 0
4 0 0 0 0 1 1 0.0673076923 0
5 0 0 0 1 0 0 0.1971153846 0
6 0 0 0 1 0 1 0.2644230769 0.3333333333
The following is the warning I get when I execute the command mentioned above.
Warning message:
algorithm did not converge in 50 of 50 repetition(s) within the stepmax
Any clarification on why this is occurring?