how define constraint on the outputs of ANN fitting?

1 view (last 30 days)
Hi All
1- how shall I define a contraint on one of all the outputs ? for example if one of the outputs is an angle , and I don't want it to increase more than 90 , since it's out of the logic of my problem
2- when I train a network in a range of data , should it always be given inputs in the same range or also should work for out of the first input ?

Accepted Answer

Greg Heath
Greg Heath on 16 Mar 2015
It depends on the reason for the constraint. Is it math/physics or convenience?
It is all done by a combination of target scaling and choice of output transfer function.
For example,
1. PURELIN ( -inf , inf )
2. TANSIG ( -a , +b ), a, b, finite
3. LOGSIG ( 0 , +b ), b finite
Hope this helps.
Thank you for formally accepting my answer
Greg
  10 Comments
farzad
farzad on 5 Apr 2015
Dear Professor, I still think I should have all the outputs together and I can not focus on one , because the network should know that there is limit on one of the outputs with respcet to the other 2 outputs , I yet could not find a solution for this case

Sign in to comment.

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!