get validation loss and metric for the best network

2 ビュー (過去 30 日間)
Md. Al-Imran Abir
Md. Al-Imran Abir 2025 年 6 月 13 日
コメント済み: Md. Al-Imran Abir 2025 年 6 月 13 日
How to get the validation loss and metric for the best network.
Example code:
[net_dnn, net_info] = trainnet(inputs,targets,layers,'mse',options);
In the ValidationHistory, I do have the loss and the performance metric for every 50 iterations (ValidationFrequency was 50). As for MSE, I guess I could get the loss by finding the minimum value but is there any other way to get that?

回答 (1 件)

Matt J
Matt J 2025 年 6 月 13 日
You would have to interpolate the validation history data at the best MSE, probably.
But keep in mind, the best MSE does not really correspond to the "best network". It only corresponds to the best minibatch.
  1 件のコメント
Md. Al-Imran Abir
Md. Al-Imran Abir 2025 年 6 月 13 日
Thank you for the minibatch info. I guess I will need to predict on the validation data and then calculate the MSE.

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

カテゴリ

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

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by