Why doesn't the Artificial Neural Network stop training at the point where it achieves the best performance indicated by the lowest MSE on the performance plot?

조회 수: 4 (최근 30일)
Why doesn't the Artificial Neural Network stop training at the point where it achieves the best performance indicated by the lowest Mean Squared Error (performance) on the performance plot?

답변 (1개)

Ganesh
Ganesh 2023년 12월 22일
편집: Ganesh 2023년 12월 24일
Hi @Sunita,
The ANN cannot stop at the lowest point, because at the time of training there is no lowest point. Ideally, the lowest loss that a model can achieve is 0. However, during training, the model has no idea of whether the loss will increase or decrease further down the line.
A model training works in the following way:
  1. The model starts off with initial weights.
  2. The model makes a prediction and assesses the loss attained for a data point.
  3. The model corrects the weight according to the loss attained.
  4. The model makes a prediction using the corrected weight and assesses the loss for next data point.
  5. The process continues until all data points are exhausted.
  6. The performance plot shows the loss attained at each step.
The model thus, has no way of knowing it’s performance on data it has not seen.
It is to be noted that the lowest mean squared error does not mean that the model is performing the best at that point. It means that the model performs well for the data it has already seen. Allowing it to train over more data would ensure that the model makes accurate predictions for unseen data.
Hope this answer helps!
  댓글 수: 3
Sunita
Sunita 2023년 12월 23일
Thank you for your response. My question pertains to the following data obtained during model training:
  1. The model stopped at epoch 22 with an MSE of 0.0242
  2. The best performance was observed at epoch 16 with an MSE of 0.031
  3. However, the final MSE between actual and predicted values is 0.0308
Shouldn't the third data align with the best performance (second) value ?
Matt J
Matt J 2023년 12월 25일
편집: Matt J 2023년 12월 25일
The best performance was observed at epoch 16 with an MSE of 0.031
An MSE of 0.031 is worse than an MSE of 0.0242. MSE is something you want to minimize.
Shouldn't the third data align with the best performance (second) value ?
No, see here:

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by