What is the MATLAB code to generate two outputs using neural networks

2 ビュー (過去 30 日間)
Precious Eze
Precious Eze 2017 年 4 月 27 日
回答済み: Greg Heath 2017 年 9 月 21 日
I'm modelling some data using neural network, so i need to get two outputs. How do i go about it?

採用された回答

Greg Heath
Greg Heath 2017 年 4 月 28 日
To get N "O"utput vector dimensions of O corresponding to N "I"nput vector dimensions of I, the sizes of the input and target matrices should be
[ I N ] = size(input)
[O N ] = size(target)
Hope this helps.
Thank you for formally accepting my answer
Greg
  2 件のコメント
Precious Eze
Precious Eze 2017 年 5 月 27 日
Spot on! Thanks Greg
Adnan Farooq Awan
Adnan Farooq Awan 2017 年 9 月 21 日
I have two classes at the input. Each class have 700, 28x28x3 images, When I convert it into vector I have 2352x1 vector for one image. Therefore, for one class I have 2352x700 features and the Input x will be 2352x1400.. and labels are 1x1400. But the network is showing input is 2352.. and output is 1?

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

その他の回答 (1 件)

Greg Heath
Greg Heath 2017 年 9 月 21 日
That is correct.
What don't you understand?
Greg

カテゴリ

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