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 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by