MinLength in the sequenceInputLayer and SignalLength in cwtLayer

5 visualizaciones (últimos 30 días)
Ahmed
Ahmed el 9 de Mzo. de 2025
Respondida: Rahul el 20 de Mzo. de 2025
How to set the parameter MinLength in the sequenceInputLayer and SignalLength in cwtLayer. Knowing that I'm working on a sequence classifier and the train data is in the form of a cell array with the size of num_sequencies*1 and each sequence is a matrix of 62*800 (62 is the number of channels or features)
XTrain{1} = rand(62, 800);
numChannels = 62;
net [ sequenceInputLayer(numChannels,"MinLength",800,"Name","input"), ...
cwtLayer("SignalLength",200,"IncludeLowpass",true,"Wavelet","amor")];
  1 comentario
Ahmed
Ahmed el 10 de Mzo. de 2025
Movida: Matt J el 10 de Mzo. de 2025
What are the ranges for MinLength and SignalLength that I can use, And How it can affect results?

Iniciar sesión para comentar.

Respuestas (1)

Rahul
Rahul el 20 de Mzo. de 2025
Hi @Ahmed,
As per my understanding, you wish to know viable ranges of 'MinLength' and 'SignalLength' properties which are required to be set in the 'sequenceInputLayer' and 'cwtLayer' functions respectively.
After reviewing the documentations for 'sequenceInputLayer' and 'cwtLayer' functions, the section for required properties suggest the following:
  • 'MinLength' (sequenceInputLayer): "When training or making predictions with the network, if the input data has fewer than 'MinLength' time steps, then the software throws an error". "To check that a network supports propagating your training and expected prediction data, set the 'Minlength' property to a value less than or equal to the minimum length of your data and the expected minimum length of your prediction data".
  • 'SignalLength' (cwtLayer): This property is specified as a positive integer greater than or equal to 4. This property can only be set at the time of creation, and is read-only after the object gets created.
The folloewing MATLAB Answer can be referred:
The following MathWorks documentations can be referred:
Thanks.

Categorías

Más información sobre AI for Signals and Images en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by