How to get percentage of training loss?

18 views (last 30 days)
The validation accuracy was shown at the right, but how can I get the loss accuracy in percentage? Thank you for solving my problem.

Accepted Answer

Srivardhan Gadila
Srivardhan Gadila on 28 Mar 2020
While using the trainNetwork function, mention the info output argumetn along with the net as follows:
[net,info] = trainNetwork(___)
Training information, returned as a structure info , where each field is a scalar or a numeric vector with one element per training iteration.
For classification problems, info contains the following fields:
  • TrainingLoss — Loss function values
  • TrainingAccuracy — Training accuracies
  • ValidationLoss — Loss function values
  • ValidationAccuracy — Validation accuracies
  • BaseLearnRate — Learning rates
  • FinalValidationLoss — Final validation loss
  • FinalValidationAccuracy — Final validation accuracy
For regression problems, info contains the following fields:
  • TrainingLoss — Loss function values
  • TrainingRMSE — Training RMSE values
  • ValidationLoss — Loss function values
  • ValidationRMSE — Validation RMSE values
  • BaseLearnRate — Learning rates
  • FinalValidationLoss — Final validation loss
  • FinalValidationRMSE — Final validation RMSE
Refer to documentation of trainNetwork.
  1 Comment
Muhammad Usman Saleem
Muhammad Usman Saleem on 11 Sep 2022
@Srivardhan Gadila How can I get TrainingRMSE, TrainingLoss, ValidationLoss, ValidationRMSE . I am using regression based neural network for timeseries dataset? Many thanks for your kind guideline

Sign in to comment.

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!