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');

답변 (1개)

KSSV
KSSV 2023년 6월 6일

0 개 추천

options= trainingOptions('adam',...
ExecutionEnvironment = 'auto',...
MaxEpochs = Epoch,...
MiniBatchSize = miniBatchSize,...
InitialLearnRate= 1e-4,...
'ValidationData',{inputVal, targetVal}, ... %<----- specify here
Plots = 'training-progress');

댓글 수: 3

Thank you KSSV I still get an error message when I set like this.
options= trainingOptions('adam',...
ExecutionEnvironment = 'auto',...
MaxEpochs = Epoch,...
MiniBatchSize = miniBatchSize,...
InitialLearnRate= 1e-4,...
ValidationData = {0.8, 0.2}, ... %<----- specify here
Plots = 'training-progress');
Error using trainNetwork The validation sequences are of feature dimension 1 but the input layer expects sequences of feature dimension 6.
KSSV
KSSV 2023년 6월 6일
The provided ValidationData is not consistent with the training data.
Hello KSSV
I get this error when I set inputVal and targetVal. Please How do I fix this

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

릴리스

R2023a

질문:

2023년 6월 6일

댓글:

2023년 6월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by