How to create a Target data ? Neural Network Tool
1 view (last 30 days)
Show older comments
Hello,
I want to make a feedforward backpropagation neural network in order to solve a classification problem.
I have big scale matrix which is 256x500. How do I create a Target data set in order to train it?
thank you
0 Comments
Accepted Answer
Greg Heath
on 10 Dec 2014
If there are c classes, each target vector should be a c-dimensional {0,1} unit vector with the row index of the 1 indicating the class index of the corresponding input vector
target = ind2vec(classindices)
classindices = vec2ind(target)
Example
classindices = [ 3 2 1 1 2 3 ]
Thank you for formally accepting my answer
Greg
0 Comments
More Answers (0)
See Also
Categories
Find more on Sequence and Numeric Feature Data Workflows 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!