How to set validation for LSTM Model
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MBUNYA NERVILLE ANYANG
el 6 de Jun. de 2023
Comentada: MBUNYA NERVILLE ANYANG
el 17 de Jun. de 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');
0 comentarios
Respuestas (1)
KSSV
el 6 de Jun. de 2023
options= trainingOptions('adam',...
ExecutionEnvironment = 'auto',...
MaxEpochs = Epoch,...
MiniBatchSize = miniBatchSize,...
InitialLearnRate= 1e-4,...
'ValidationData',{inputVal, targetVal}, ... %<----- specify here
Plots = 'training-progress');
3 comentarios
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!