Train recurrent neural network with variable length input cell vectors.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Essa Anas
am 30 Nov. 2016
Beantwortet: Essa Anas
am 1 Dez. 2016
Hi,
I am working on recurrent neural network and my dataset consists of input cell and target cell. The input cell consists of vectors with variable length for example input{[1,1,0],[2,1,1,1,2,1],[2,1],...} and my target is T{[0,0,1],[0,0,0,0,0,1],[0,1],....} I tried to use the command [Xs,Xi,Ai,Ts] = preparets(net,input,T); but Matlab through the error (Error using preparets (line 78)
Inputs{1,3} and Inputs{1,1} have different numbers of columns)
Which command should I use to overcome this issue?
Thanks in advance for any advice.
0 Kommentare
Akzeptierte Antwort
Greg Heath
am 1 Dez. 2016
Neural networks require "I"nput column vectors with a fixed length (I). Therefore you will have to complete the columns with zeros.
[ I N ] = size(input)
[ O N ] = size(target)
Hope this helps.
Thank you for formally accepting my answer
Greg
0 Kommentare
Weitere Antworten (1)
Essa Anas
am 1 Dez. 2016
Thank you for your reply. Yes, after changing the input to be with equal length, I was able to train the RNN.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!