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?
Best Answer