How to set my target for the neural network pattern recognition

4 ビュー (過去 30 日間)
Yatt
Yatt 2013 年 11 月 10 日
Hi Greg,
I want ask your help on setting my target for a given data. This is my first time using the Neural Network Pattern Recognition tool. I need to have a target ouput from 0 to 4 which from 303 samples and 14 attributes.
The input patterns I selected is from the data set value. I tried to put the target according to below but there is keep saying it cannot run because it is not same with the number of samples. How can I solve this problem?
0 0 0 0 1
0 0 0 1 0
0 0 1 0 0
0 1 0 0 0
1 0 0 0 0
I really need you to answer the question as possible. Thanks Greg.

採用された回答

Greg Heath
Greg Heath 2013 年 11 月 10 日
size(input) = [ 14 303 ]
size(target) = [ 4 303 ]
Hope this helps.
Thank you for formally accepting my answer
Greg

その他の回答 (2 件)

Barenya Bikash  Hazarika
Barenya Bikash Hazarika 2018 年 5 月 31 日
Hi Greg,
Can I get your help on setting my input as well as target for a given data.The size of my dataset is 12*4. How much should be the size of input and target?
  1 件のコメント
Randi Pratama
Randi Pratama 2018 年 8 月 17 日
編集済み: Randi Pratama 2018 年 8 月 17 日
Assuming the dataset is the input, as Greg said it will be
size(input) = 12*4
size(output) = n*4 % It depends how much target do you want, say it is true or false then.
size(output) = 2*4
I know it is late, but just in case.

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


Aarón Andrés Santana Hernández
Aarón Andrés Santana Hernández 2020 年 12 月 6 日
Hello! I have a similar problem, so, when I try to upload a 3x60 matrix as a target, with a 10x60 matrix, the program do not even recognise the target ¿How can I fix that problem or at least know the reason why it happens?

カテゴリ

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