how to form target vector for neural network?

I have an eeg data set containing data of five tasks performed by a single subject. The data is collected from 7 electrodes for each task. Data size for each task is 2500x7. I have concatenated the data for all tasks to form 12500x7 matrix, to be classified using neural network. My input matrix is the 12500x7 matrix. how to form the target vector?

 採用された回答

Greg Heath
Greg Heath 2015 年 12 月 30 日

0 投票

If N I-dimensional vectors are to be classified into one of c exclusive classes, the target vectors should be {0,1} c-dimensional unit column vectors from the unit matrix eye(c).
[ I N ] = size(input)
[ c N ] = size(target)
See
help patternnet
doc patternnet
for documentation examples.
Hope this helps.
Thank you for formally accepting my answer
Greg

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 12 月 29 日

0 投票

That depends: what are you trying to classify or predict? If you had a whole bunch of these datasets and your task was to figure out from measurements who was being tested, then you should be reshaping that 12500x7 into a single vector and making similar vectors for other subjects and your target vector would be identity number of each of the subjects.

1 件のコメント

Santa Maria
Santa Maria 2015 年 12 月 29 日
編集済み: Santa Maria 2015 年 12 月 29 日
i have to classify the particular task, each element in my matrix belongs to

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

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2015 年 12 月 29 日

回答済み:

2015 年 12 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by