MATLAB: Problem with targets in nprtool

annDeep Learning Toolboxneural networknprtool

I'm trying to train a ANN using the nprtool but i can't select my targets. The targets option is empty while the inputs shows all my data. Why is it happening? Any idea?
Thanks in advance

Best Answer

If you have n classes ,then your target matrix for nprtool should be a n*m matrix where m is the number of training samples. Each column of the matrix should have a 1 in the row representing the corresponding class with the rest as 0.