How to create a Target data ? Neural Network Tool

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

 채택된 답변

Greg Heath
Greg Heath 2014년 12월 10일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2014년 12월 9일

답변:

2014년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by