How to sign multiple input and multiple output?

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.

 采纳的回答

Greg Heath
Greg Heath 2015-2-5
编辑:Greg Heath 2015-2-5
size(input) = [ 3 26 ]
size(target) = eye(36)
Hope this helps.
Thank you for formally accepting my answer
Greg

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Deep Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by