What are the ranges for MinLength and SignalLength that I can use, And How it can affect results?
MinLength in the sequenceInputLayer and SignalLength in cwtLayer
조회 수: 5 (최근 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개)
Rahul
2025년 3월 20일
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:
'MinLength' (sequenceInputLayer): https://www.mathworks.com/help/releases/R2024a/wavelet/ref/cwtlayer.html
'SignalLength' (cwtLayer): https://www.mathworks.com/help/releases/R2024a/deeplearning/ref/nnet.cnn.layer.sequenceinputlayer.html
Thanks.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 AI for Signals and Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!