using 2D data as input for a neural network

have data that i'd like to use as input for a pattern recognition neural net project
the data comes as a series of tables, each of which needs to be input all at once, rather than one row or one col at a time
so, I figure it needs to be "spooled" out to one long array, and the net will need at least that many input neurons
so, two questions:
1) does it matter how it gets spooled out? say, column by column, row by row, or either as long as I'm consistent?
2) the tables are different sizes, should I just pad the smaller ones out with zeros? nulls?
thanks

 採用された回答

Greg Heath
Greg Heath 2016 年 4 月 24 日

0 投票

0. An input layer node is not a neuron. Only hidden and output layer nodes are neurons.
1. Use the colon operator matrix(:) to convert matrices to a single column.
2. No need to pad with zeros or nulls. Just stack the converted matrices ([a(:);b(:);...;z(:)]
Hope this helps.
Thank you for formally accepting my answer
Greg

その他の回答 (0 件)

カテゴリ

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

質問済み:

2016 年 4 月 23 日

コメント済み:

2016 年 4 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by