What is the use of the target matrix and how do i create one?
이전 댓글 표시
We are developing a neural network for classification there are 72 signals and there are 100 samples of each signal. We have extracted 49 parameters from each signal. What should my target matrix contain
채택된 답변
추가 답변 (1개)
Walter Roberson
2016년 1월 25일
편집: Walter Roberson
2016년 1월 25일
1 개 추천
It depends on which routine you are using. Typically the target matrix is a vector, one element per sample, which contains the nonnegative integer class number that the sample is to be assigned to. But for some routines, the target matrix is a 2D matrix, one row per sample, in which all of the elements in a row are 0 except that the N'th element is 1 to indicate that the sample belongs to the N'th class. (There are routines provided to convert between the two forms.)
You construct a target vector by populating it with the known class numbers for each of your training samples. You would have determined the known class numbers by some outside method. For example if those 72 signals are intended to be distinct, then the class number would be an integer in the range 1 to 72.
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!