Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Target values for Neural Network

Status
Not open for further replies.

TheTrees

Computer
Joined
Nov 17, 2007
Messages
1
Location
US
After I initialize the values for my NN, I want to be able to train it with a given output and a desired 'target' output. And, I can get this to work if I make my 'target' values are smallish, like less than 10. For example:

input_values = [9 8 7 6 5 4 3 2 1 0];
target_values = [0 1 2 3 4 5 6 7 8 9];

net = train(net, input_values, target_values);
sim(net, 2) % gives the result of 7

But, if I change the input and target values to bigger numbers like:

input_values = [100 200 300];
output_values = [100 200 300];

sim(net, 100) % gives the result of 200, no matter the input

Then it converges to 200, and I do not understand why this is? Why would it only work with smaller numbers? Maybe it doesn't work at all, and I just got lucky with my smaller example?

Thanks for any help or suggestions!

 
Student posting is not allowed.

TTFN

FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top