フィルターのクリア

How to Plot Accuracy instead of RMSE in the training progress graph of 'trainNetwork'

6 ビュー (過去 30 日間)
arash rad
arash rad 2023 年 1 月 20 日
回答済み: Yash Sharma 2024 年 7 月 4 日 5:55
Hi every One
I am using LSTM For prediction and for my Train data I use Train Network.
one of the options of Train network is training progress but after i ruun my code It only plot RMSE of the seqence what should I do to change it to Accuracy ?
Thanks in advance

回答 (1 件)

Yash Sharma
Yash Sharma 2024 年 7 月 4 日 5:55
To plot accuracy instead of RMSE in the training progress graph when using trainNetwork with LSTM for a classification task, you need to ensure that your network and training options are set up for classification. This involves using a classification layer and specifying accuracy as a metric in the training options.
Here’s how you can do it:
  1. Ensure the network is set up for classification: Use a softmax layer and a classification layer.
  2. Specify accuracy as a metric: Use the trainingOptions function to specify accuracy as a metric.

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by