How to get the function 'convolution1dLayer' ?
17 次查看(过去 30 天)
显示 更早的评论
I haev been working on the 1D CNN. But in matlab if i try to use the function 'convolution1dLayer'. Im getting a response as,
>> layer = convolution1dLayer(11,96)
Unrecognized function or variable 'convolution1dLayer'.
Did you mean:
>> layer = convolution2dLayer(11,96)
5 个评论
回答(2 个)
Nabil Ajali
2022-1-25
There are any solution?
7 个评论
Steven Lord
2022-1-27
You said "I have the R2021b version upgraded" but the path you showed indicate you're using release R2021a: "C:\Program Files\MATLAB\R2021a". You must use release R2021b or later to be able to use convolution1dLayer.
Nabil Ajali
2022-1-31
Oh, Maybe I was wrong thinking that I updated. I will confirm this.
Thank you very much!
yanqi liu
2022-1-26
yes,sir,may be use 2D to replace 1D,such as
imageInputLayer([1024 1 1])
convolution2dLayer([100 1],3,'Stride',1)
2 个评论
Nabil Ajali
2022-1-26
Thanks yanqui liu, the problem is my data.
I have 1D vectors and i want to make a CNN with a BiLSTM, so i must use de convolution1DLayer.
yanqi liu
2022-1-27
yes,sir,may be use sequenceInputLayer to get model,such as
layers = [ ...
sequenceInputLayer(numFeatures)
lstmLayer(100,'OutputMode','sequence')
dropoutLayer(0.3)
lstmLayer(50,'OutputMode','sequence')
dropoutLayer(0.2)
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer];
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!