Why best performance MSE does not align with final MSE?
Show older comments
ANN model outputs
- The model stopped at epoch 22 with an MSE of 0.0242
- The best performance was observed at epoch 16 with an MSE of 0.031
- However, the final MSE between actual and predicted values is 0.0308
Shouldn't the third data align with the best performance (second) value ?
5 Comments
Sunita
on 24 Dec 2023
the cyclist
on 24 Dec 2023
Is it just a rounding issue in a displayed value? 0.0308 is equal to 0.031, rounded to three decimal places.
Mahi
on 24 Dec 2023
MSE at epoch 22 is better than the epoch 16. There is always a difference between training and testing error and accuracy values . Your final value of MSE is higher than your training mse .which I think is good.otherwise it may mean that your model is over fitted
pathakunta
on 26 Jan 2024
The model stopped at epoch 22 with an MSE of 0.0242
Answers (1)
MSE you achieve at epoch 22 is for that specific minibatch used at epoch 22. That would not mean that you achieve the same MSE for all of the dataset. It's quite possible that you achieve a lower or a higher MSE on the test set.
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!