What is the use of the target matrix and how do i create one?
Show older comments
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
Accepted Answer
More Answers (1)
Walter Roberson
on 25 Jan 2016
Edited: Walter Roberson
on 25 Jan 2016
1 vote
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.
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!