Is there any way possible ?
how define constraint on the outputs of ANN fitting?
1 view (last 30 days)
Show older comments
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
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
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!