How to return a final training loss value?

조회 수: 14 (최근 30일)
Sho Wright
Sho Wright 2021년 4월 6일
답변: Lokesh 2023년 10월 13일
I want to evaluate the results of my network at various settings (changing batch size, maximum epochs, dropout layer rates,etc).
I've set my 'verbose' to true to extract data as to obtain mini-batch and validation RMSE/loss data per epoch, and I want to compare my final validation loss against my final training loss, as from what I know these can be compared to see if your network has resulted in underfitting, overfitting or optimally.
I have used 'info' to return my final results but the training loss is stated as a single column
Is there any way to get a final training loss, the same way I have a final validation loss and RMSE?
Thank you

답변 (1개)

Lokesh
Lokesh 2023년 10월 13일
Hi Wright,
I understand that you want to obtain the value of the final training loss. However, ‘info.TrainingLoss’ consists of a column of values rather than a single value.
The ‘info.TrainingLoss’ variable contains a column of values, where each element corresponds to the loss for a particular iteration. For example, ‘info.TrainingLoss(1)’ corresponds to the training loss for the first iteration, ‘info.TrainingLoss(2)’ corresponds to the training loss for the second iteration, and so on. By accessing ‘info.TrainingLoss(end)’, you can retrieve the value of the final training loss.
I hope you find this helpful.
Best Regards,
Lokesh

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by