Hellp people,
I have a 3-layer neural network (input, hidden, output) using sigmoid functions.
I can train the network to learn the xor function perfectly.
However when i try to train the network to learn the sine function it fails.
The train dataset is [41 rows x 2 columns] array.
The values in first column run from -1 to +1 and the its corresponding sine values are stored in the second column.
The network error remains the same (around 0.5) no matter how many iterations i run.
Anyone have a idea what is wrong with the network?
Thank you in advance.... really waiting for your feedback....
Train Neural Network
Started by noise, Jul 12 2004 11:53 AM
10 replies to this topic
#1
Posted 12 July 2004 - 11:53 AM
#2
Posted 12 July 2004 - 05:51 PM
try changing the number neurons. there might be unlucky constalations where the network is locally stuck
If Prolog is the answer, what is the question ?
#3
Posted 13 July 2004 - 12:54 AM
anubis said:
Thank you for ur reply.
Well I did try but it still not working...After trying to change the parameters, i found out the with the train dataset other than the train dataset i used for training the xor function (matrix of 4x2) the network fails.
Do you have any idea what should be the problem?
Thank you...
#4
Posted 13 July 2004 - 01:52 AM
I took out the bias update and it works... really dun understand why i have not to update bias...
Now the problem is: cannot train negative values... and the network error can not go below 0.04...
I did try to change the number of neurons, the learning rate, the momentum but still cannot go below 0.04...
Anyone have an idea....
Any feedback will be very much appreciated....
Thank you....
Now the problem is: cannot train negative values... and the network error can not go below 0.04...
I did try to change the number of neurons, the learning rate, the momentum but still cannot go below 0.04...
Anyone have an idea....
Any feedback will be very much appreciated....
Thank you....
#5
Posted 13 July 2004 - 06:41 AM
i saw your code but am relucatant to debug it :D
i can't think of any typical error right now and small errors in your code can cause havok in the network
i can't think of any typical error right now and small errors in your code can cause havok in the network
If Prolog is the answer, what is the question ?
#7
Posted 13 July 2004 - 03:07 PM
"i'm reluctant to debug it" means i don't enjoy browsing through other peoples code to find the one error that kills everything
If Prolog is the answer, what is the question ?
#8
Posted 16 July 2004 - 06:58 PM
anubis said:
I see...
OK, please give me some idea on these:
*the smallest network error when training sine function is around 0.04, when training function 1/x^2 is around 0.01....no matter how many time i set the number of iteration... Why is this so? is true that the more the number of iteration the smaller the network error? i use mean square error.
*the error is not just going down...it's up and down, very unstable...
Thank you very much...
#9
Posted 16 July 2004 - 07:48 PM
yeah... that's normal. you see when training a network you don't have a the usual kind of aproximation that gets better an better with each iteration. because of this your training algorithm might get locally stuck (imagine it like a car running out of fuel in between to hills). also a small error might always remain. after all it's only an aproximation.
If Prolog is the answer, what is the question ?
#10
Posted 20 July 2004 - 06:55 PM
anubis said:
yeah... that's normal. you see when training a network you don't have a the usual kind of aproximation that gets better an better with each iteration. because of this your training algorithm might get locally stuck (imagine it like a car running out of fuel in between to hills). also a small error might always remain. after all it's only an aproximation.
Thank you.
#11
Posted 20 July 2004 - 09:19 PM
there is no "correct" aproximation for a network. imagine it like driving with a car through hills and valleys. at some point you get stuck in a valley because you run out of fuel. there is no gurante however that the valley you found is the optimal valley (the one giving the correct answer), in fact there is no gurantee that the optimal valley even exists.
read up a bit on n-networks and you will understand my rather simple example
read up a bit on n-networks and you will understand my rather simple example
If Prolog is the answer, what is the question ?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












