×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Target values for Neural Network

Target values for Neural Network

Target values for Neural Network

(OP)
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!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources