How do you verify if a training curve is overfitting?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1184618/image.jpeg)
0 comentarios
Respuestas (1)
John D'Errico
el 7 de Nov. de 2022
This is why you need to segregate some of your data for validation purposes.
Split your data into two parts, perhaps selected randomly. For the model to your training data. What was the error in the fit? Note that.
Then test the model on the validation data. If the validation set has an error of roughly the same size as the training set, then you are not overfitting.
However, if the prediction error on the validation set is significantly larger than the training set, then you are overfitting your data.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!