2D array as input to neural network
Mostra commenti meno recenti
My neural network has 2 feature variables each with a length of 112. Further I have 5 samples from each person and there are total 5 persons.
input= 2 rows, 112(per class feature vector length), 5 persons and 5 samples per person, so its (2, 112 x 5 x 5)
output = (5 (classes), 112 x 5 x 5)
I intend to specify the basic unit of classification as 2 x 112. Any idea how can I do this ? Currently its consider each column 2 x 1 as one input.
2 Commenti
Walter Roberson
il 19 Feb 2013
Did you experiment with transposing the input array to 112 x 2, just to see what would happen?
sajid
il 19 Feb 2013
Risposta accettata
Più risposte (1)
Walter Roberson
il 19 Feb 2013
0 voti
A feature cannot be a 2D array. You can reshape() to make each feature a column.
5 Commenti
sajid
il 19 Feb 2013
Walter Roberson
il 19 Feb 2013
Were you planning to try to process the different items in different ways? For example tansig the magnitude but not the direction? If not, then in theory having them interleaved should not matter, as neural networks are intended to form their own notion of the relationship between parts of features.
sajid
il 19 Feb 2013
Walter Roberson
il 19 Feb 2013
I do not know if it is possible to treat different elements differently. Maybe with custom functions of some kind. Greg would know; he might visit the topic in anywhere between 4 hours and 4 days (depending on when he gets enough coffee in his system.)
Greg Heath
il 19 Feb 2013
It doesn't matter how your input rows are ordered.
However, I suggest transforming to cartesian coordinates so that
input = [ x ; y ]
with
size(y) = size(x) = [ 112 25 ]
Categorie
Scopri di più su Modeling and Prediction with NARX and Time-Delay Networks in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!