Predict a parabola with LSTM deep learning
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi all,
I'm testing deep learning LSTM networks and I'm trying to predict a parabola, which is a non periodic function, after having succeeded in predicting periodic ones.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/277585/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/277586/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/277587/image.png)
I obtained the first two curves with these settings:
numFeatures = 1;
numResponses = 1;
numHiddenUnits = 200;
layers = [ ...
sequenceInputLayer(numFeatures)
bilstmLayer(numHiddenUnits)
fullyConnectedLayer(numResponses)
regressionLayer];
options = trainingOptions('adam', ...
'MaxEpochs',500, ...
'GradientThreshold',1, ...
'InitialLearnRate',0.005, ...
'LearnRateSchedule','piecewise', ...
'SequenceLength','longest',...
'LearnRateDropPeriod',1250, ...
'LearnRateDropFactor',0.2, ...
'Verbose',0, ...
'Plots','training-progress');
The third one is what I would like to obtain, and this is possible using LSTM as explained here, where some people has done it in python.
I'm wondering how to obtain the same with LSTM layer in MATLAB
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!