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.

 Réponse acceptée

Greg Heath
Greg Heath le 5 Fév 2015
Modifié(e) : Greg Heath le 5 Fév 2015

0 votes

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

Plus de réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by