how to use neural network
Show older comments
i want ask how to determine epoch in matlab r2019b when the data from excel?
7 Comments
Walter Roberson
on 26 Feb 2020
Split the task into two parts. First read the data. Then determine the epoch of the data you have in memory.
importtool and then nntool
Cicasmi Hasibuan
on 30 Mar 2020
Mohammad Sami
on 30 Mar 2020
Your model will likely become over fitted with so many epochs. The best way is to set aside data for validations and stop the training once validation accuracy starts to plateau or decreases.
Cicasmi Hasibuan
on 30 Mar 2020
Mohammad Sami
on 30 Mar 2020
Yes MSE is one of the measure you can use to check the performance.
What I was highlighting is that you are using training MSE, which can result in overfitting your model to the data. You should use validation MSE instead, which will be a better reflecting of how your model would perform.
Cicasmi Hasibuan
on 30 Mar 2020
Abhipsa
on 31 Jan 2025
Hi @Cicasmi Hasibuan, actually you need to have a validation dataset in order to calculate validation MSE. Validation dataset is a separate dataset that is not used in training but can be used to help prevent overfitting. One of the possible way is "Early Stopping" i.e. to stop the model training when validation loss stops decreasing (i.e., when the model starts overfitting). We can monitor the validation MSE and stop training when it starts increasing.
Answers (0)
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!