How can I get a value of Training RMSE of the LSTM training?
12 次查看(过去 30 天)
显示 更早的评论
Hi everyone.
I trained LSTM network for price prediction.I have info.TrainingRMSE of LSTM. But I want to get final value of RMSE for training to compare between training RMSE and testing RMSE.
How can I calculate final value of training RMSE? Please help me.Thanks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/769011/image.jpeg)
And I have another question. Why some values of ValidationRMSE is NaN?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/769016/image.jpeg)
0 个评论
采纳的回答
Niccolò Dal Santo
2021-11-11
Hi Nazila,
You can access the final Training and Validation RMSE from the info struct returned by trainNetwork, by accessing the last element:
>> info.TrainingRMSE(end)
Some values of the vector info.ValidationRMSE are NaN since they correspond to the iterations where the model is not evaluated on the validation dataset. You can set how often the model is evaluated on the validation dataset with the ValidationFrequency training option.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!