How to set validation for LSTM Model

24 Ansichten (letzte 30 Tage)
MBUNYA NERVILLE ANYANG
MBUNYA NERVILLE ANYANG am 6 Jun. 2023
Hello
I have LSTM network with database created. I have configure the network to use 70% of data for trainig and 30% for testing. Please how do I setup validation in the training option? I am stuck at this point...
for i= 1:rt-7012 %% this gets 70% of database content
GHITrain{i,1}= Database{i,1};
end
restTrain= resultDatabase(1:rt-7012);
options= trainingOptions('adam',...
ExecutionEnvironment = 'auto',...
MaxEpochs = Epoch,...
MiniBatchSize = miniBatchSize,...
InitialLearnRate= 1e-4,...
Plots = 'training-progress');

Antworten (1)

KSSV
KSSV am 6 Jun. 2023
options= trainingOptions('adam',...
ExecutionEnvironment = 'auto',...
MaxEpochs = Epoch,...
MiniBatchSize = miniBatchSize,...
InitialLearnRate= 1e-4,...
'ValidationData',{inputVal, targetVal}, ... %<----- specify here
Plots = 'training-progress');
  3 Kommentare
KSSV
KSSV am 6 Jun. 2023
The provided ValidationData is not consistent with the training data.
MBUNYA NERVILLE ANYANG
MBUNYA NERVILLE ANYANG am 17 Jun. 2023
Hello KSSV
I get this error when I set inputVal and targetVal. Please How do I fix this

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by