How to sign multiple input and multiple output?
1 view (last 30 days)
Show older comments
I get this error when I try to run my neural network:
Inputs and targets have different numbers of samples.
I want to train my network to classify RGB values as alphabetical characters. Then if I get a RGB value, the network would be able to tell which alphabetical character it would sign to - cyphering. So my input is 3x26: red : [255 0 0] yellow : [255 255 0] etc. My output is the english alphabet, so total 26 letters (which explains the 26 samples in the input). I have tried to sign the ouput as : A :[1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] B :[0 1 0 0 0 0...] etc ..and also as 1:26 and 1234...
Do I need to have one single number for RGB or different method in the output arrangement? Totally lost.
0 Comments
Accepted Answer
Greg Heath
on 5 Feb 2015
Edited: Greg Heath
on 5 Feb 2015
size(input) = [ 3 26 ]
size(target) = eye(36)
Hope this helps.
Thank you for formally accepting my answer
Greg
0 Comments
More Answers (0)
See Also
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!