How can I get the predicted YValidation data using LSTM model?

2 Ansichten (letzte 30 Tage)
Chen Liying
Chen Liying am 18 Aug. 2022
Beantwortet: Krishna am 6 Jun. 2024
Hi, I did a LSTM model, just like the link mentioned(https://ww2.mathworks.cn/help/deeplearning/ref/trainnetwork.html), I specified the ValidationData in the opts.
options = trainingOptions("sgdm", ...
MaxEpochs=8, ...
ValidationData={XValidation,YValidation}, ...
ValidationFrequency=30, ...
Verbose=false, ...
Plots="training-progress");
Because I want draw a picture including the YValidation data(which I specified) and predicted-YValidation data(which derived from the training net), the question is "How can I get the predicted YValidation data"?
Thank you!

Antworten (1)

Krishna
Krishna am 6 Jun. 2024
Hi Chen,
I understand that you want to obtain the Yvalidation from the network, the Xvalidation output which you are using for validation. It's quite straightforward, you can use the predict function or classify function to get the output, just like you do with the testing dataset. Since the validation dataset is not used for training, it can be treated as a testing dataset.
Please go through the following documentation to learn more,
Hope this helps.

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by