%% Sequence-to-Sequence Classification LSTM Network
% To create an LSTM network for sequence-to-sequence classification, create a layer array containing a sequence input layer, an LSTM layer, a fully connected layer, a softmax layer, and a classification output layer.
% Specify the size of the sequence input layer to be the feature dimension of the input data. Specify the size of the fully connected layer to be the number of classes.
% For the LSTM layer, choose an output size, and specify the output mode 'sequence'.

inputSize = 12;
numHiddenUnits = 100;
numClasses = 9;
layers = [ ...
    sequenceInputLayer(inputSize)
    lstmLayer(numHiddenUnits,'OutputMode','sequence')
    fullyConnectedLayer(numClasses)
    softmaxLayer
    classificationLayer];

% Copyright 2012 The MathWorks, Inc.