what is the target data should be? for the neural network

J
Janice_ed · Jul 19, 2021 · 2K views
Question
I have a variable which is the vertical and horizontal projection of histogram data from digit 0 to 9. the matrix is 30×176. it has 30 row because each digit had 3 set. I need to use neural network to train these but I had no idea what to place in target data. What should the target data be? i tried to place binary number of digit 0 to 9 into the target data but it seems to be wrong because result shows 0.0%.  
Expert Answer
Profile picture of Neeta Dsouza
Neeta Dsouza PhD Expert
Answered Aug 16, 2026
The target should be set to the digit number 0 to 9 that each row corresponds to.
 
 
T = kron( (0:9).', ones(3,1) )

or

T = repelem((0:9).',3)
if you have a new enough MATLAB.
 
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!