get validation loss and metric for the best network

조회 수: 5 (최근 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 CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by