How is it possible to use a validation set with a LSTM?
Mostra commenti meno recenti
When I try to use the Validation set with a LSTM layer, it shows the following error:
options = trainingOptions('adam', ...
'ExecutionEnvironment','gpu', ...
'GradientThreshold',1, ...
'MaxEpochs',maxEpochs, ...
'ValidationData',{XTest,YTest},...
'MiniBatchSize',miniBatchSize, ...
'LearnRateSchedule','piecewise', ...
'SequenceLength','longest', ...
'Shuffle','never', ...
'Verbose',0, ...
'Plots','training-progress');
net = trainNetwork(XTrain,categorical(YTrain),layers,options);
Error:
Training with validation data is not supported for networks with LSTM layers.
Is there another way to use the Validation set during the training of the network?
1 Commento
Kenta
il 14 Mar 2020
Now that, the use of validation data with LSTM network is available.
The example follows:
Risposta accettata
Più risposte (2)
Mads Bergholt
il 17 Mag 2018
0 voti
Dear Joss, will this be part of Matlab 2018b? This is an aspect of LSTM that is very important for validating these algorithms.
Best regards Mads
3 Commenti
Joss Knight
il 17 Mag 2018
Modificato: Joss Knight
il 17 Mag 2018
Yes, 18b is the plan. Get hold of the prerelease when it comes available (early June I think), if you can.
XIANFENG XU
il 7 Nov 2018
I am sorry to say that this is still not included in Matlab 2018b. Sigh. Maybe we have to turn to Tensorflow for deep learning.
Joss Knight
il 13 Nov 2018
ValidationData is indeed supported for Sequence Networks in R2018b: https://www.mathworks.com/help/deeplearning/ref/trainingoptions.html#bu59f0q_sep_mw_4d4d5e80-6684-47de-986c-f9f8258b7c6d
There are some restrictions on the format of the data.
Mads Bergholt
il 20 Mag 2018
0 voti
thanks Joss
Categorie
Scopri di più su Deep Learning Toolbox in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!