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.

 Akzeptierte Antwort

Greg Heath
Greg Heath am 5 Feb. 2015
Bearbeitet: Greg Heath am 5 Feb. 2015

0 Stimmen

size(input) = [ 3 26 ]
size(target) = eye(36)
Hope this helps.
Thank you for formally accepting my answer
Greg

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by