Neural network with negative output ?

1 回表示 (過去 30 日間)
reda yagoub
reda yagoub 2018 年 10 月 31 日
コメント済み: Greg Heath 2018 年 12 月 19 日
hi, i have problem with Neural network using nntool, i have a some negative data in the output! there is relation between this in the input range ? and how can i define the input range ? i use the logsig and pureline transfer function,
thanks in advance,
  3 件のコメント
reda yagoub
reda yagoub 2018 年 11 月 1 日
but why ! i need a output with only positive values, how can i choose the input range! thanks
Greg Heath
Greg Heath 2018 年 12 月 19 日
Your comment doesn't make any sense.
You should ALWAYS plot your input, output and output vs input
The range of input and target are properties of the given data. Not sure what you mean by choosing them.
Always choose tansig in the hidden layer
In general, the output layer is linear
HOWEVER for specific cases:
Use tansig if the output is bounded in [ -1,1]
Use logsig if the output is bounded in [ 0,1]
Hope this helps.
Greg

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by