how define constraint on the outputs of ANN fitting?

2 次查看(过去 30 天)
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 ?

采纳的回答

Greg Heath
Greg Heath 2015-3-16
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 个评论
farzad
farzad 2015-4-5
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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by