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 Exchange에서 Deep 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