Documented valid name-value pair argument is not recognised as parameter, for sequenceFolding and unfolding -layers
Afficher commentaires plus anciens
Hello,
I am trying to build a convolutional NN to classify time series data, and later combine it with an LSTM (similar to this study: LSTM Fully Convolutional Networks for Time Series Classification, Karim et al.)
To be able to use convolutional layer on time series MatLab gave me an error and suggested i use a sequenceFoldingLayer and sequenceUnfoldingLayer before and after the convolution layer. I Have not included both layers but get the following error:
Error using sequenceFoldingLayer>iParseInputArguments (line 74)
'NumOutputs' is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this
function.
However, as stated in the documentation, 'NumOutputs' is a valid name-pair argument, and I do not understand why I cannot use it. If I try to not set 'NumOutputs' I get an error of unused output and input from the folding and unfolding layers because of a mismatch between the miniBatchSizes.
I have the following layers for the network setup:
inputSize = 1;
nClasses = 2;
miniBatchSize = 10;
layers = [...
sequenceInputLayer(inputSize,'Name','InputLayer')
sequenceFoldingLayer('NumOutputs', miniBatchSize,'Name', 'fold')
convolution2dLayer(5,10)
batchNormalizationLayer('Name', 'BN')
reluLayer('Name','ReLu')
sequenceUnfoldingLayer('NumInputs', miniBatchSize,'Name','unfold')
fullyConnectedLayer(nClasses)
softmaxLayer
classificationLayer];
Réponse acceptée
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!