Formula for calculating validation accuracy while training CNN

7 ビュー (過去 30 日間)
Teo
Teo 2021 年 12 月 13 日
コメント済み: Teo 2022 年 3 月 10 日
Hi,
I trying to figure out how does matlab come up with validation accuracy when the training is finished in training progress. As you can see in the figure below, the validation accuracy was 92.30%.
but when i tried to calculate the validation accuracy based on the data collected in traininfo, i found out that the value does not match. i tried to see the maximum validation accuracy based on the excel attached above, it does not match. i also tried to get the average value by sum all the value and divide by 200 also does not match.
Appreciate if someone could help explaining the formula for calculating the training accuracy based on the result from the traing plot. Thank you.

回答 (1 件)

yanqi liu
yanqi liu 2021 年 12 月 14 日
yes,sir,use the finally model,and the val data to compute,you can get the target acc
in traininfo,it is the loop stats value,not compute by the finally model
  1 件のコメント
Teo
Teo 2022 年 3 月 10 日
could you elaborate more on how to get the finally model and val data?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by