What means MinLength in sequenceInputLayer?

6 visualizaciones (últimos 30 días)
mika
mika el 8 de Feb. de 2024
Respondida: Pratyush Swain el 8 de Feb. de 2024
Environment
  • MATLAB R2023b
  • Deep Learning Toolbox
Question
I try to use this example program to learn complex-valued neural networks.
At line 38, layers are defined as below and the argments of `sequenceInputLayer` are
  • numChannels
  • SplitComplexInputs
  • MinLength
layers = [ ...
sequenceInputLayer(numChannels,SplitComplexInputs=true,MinLength=minLength)
convolution1dLayer(filterSize,numFilters,Padding="causal")
reluLayer
layerNormalizationLayer
convolution1dLayer(filterSize,2*numFilters,Padding="causal")
reluLayer
layerNormalizationLayer
globalAveragePooling1dLayer
fullyConnectedLayer(numResponses)
regressionLayer];
What means `MinLength` in `sequenceInputLayer`?
I tried `MinLength=1` but this program worked.
If MinLength meant MinLength for down sampling, `MinLength=1` hasn't must work.

Respuesta aceptada

Pratyush Swain
Pratyush Swain el 8 de Feb. de 2024
Hi mika,
The "MinLength" argument is used to define the smallest length of input sequences that the network can process. When you set "MinLength=1", it means that the network will accept sequences that are at least one time step long. It shows the capability of the network to handle variable-length input sequences.
The "MinLength" argument's default value is 1 itself.When you train or assemble a network, it checks that sequences of length 1 can propagate through the network.
For more information on "sequenceInputLayer" and its arguments, please refer to https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.layer.sequenceinputlayer.html

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by