ytrs-01 - 2021-05-17T15:57:25+00:00
Question: How is it possible to use a validation set with a LSTM?
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?