MinLength in the sequenceInputLayer and SignalLength in cwtLayer

4 次查看(过去 30 天)
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 个评论
Ahmed
Ahmed 2025-3-10
移动:Matt J 2025-3-10
What are the ranges for MinLength and SignalLength that I can use, And How it can affect results?

请先登录,再进行评论。

回答(1 个)

Rahul
Rahul 2025-3-20
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.

类别

Help CenterFile Exchange 中查找有关 AI for Signals and Images 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by