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

Illustration
Janice_ed - 2021-07-19T11:07:06+00:00
Question: what is the target data should be? for the neural network

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 answered . 2025-11-20

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.
 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!