Skip to content
Minsing Log
Go back

English Edition

Overfitting & Underfitting

Data & ML

If the same points are given and a function that can represent these points is estimated, the middle is considered optimized.

Content and image source: https://22-22.tistory.com/35





-> Excessive learning of the training sample / As the model becomes more complex, the loss for new test samples initially decreases, but you can see that it gradually increases.




What is overfitting?

In multiple linear regression, excessive learning of the training data causes the prediction accuracy for the training data to become too high, resulting in lower accuracy for new data / the model’s generality decreases. It can also occur when the model’s complexity increases.




How can it be identified?

When the prediction accuracy for new data is very low in a multiple linear regression model trained on past data.




Solutions

  1. cross-validation (k-fold is standard)

  2. Regularization

  1. data augmentation (increasing the training data)

  2. dropout: turn off neurons during training

  3. Lower Model capacity: Simplify the model so that it is not excessively complex compared to the training data, such as by reducing the size of the hidden layers or reducing the number of layers.

If Test Set Accuracy increases and then decreases, this can be considered a case of insufficient training data. The amount of training data needs to be increased. For images, the data can be augmented by changing the image’s proportions, covering part of it, or rotating it.

There are cases where the Training Set Accuracy is close to 100% but the Test Set Accuracy is considerably lower. It is necessary to check whether the training data is biased. This may occur when data from special cases is used to solve a general problem.

Content reference: https://22-22.tistory.com/35


What is Underfitting?

A state in which the model has not even learned the existing train set.


Why does it occur?




Summary

Overfitting is a phenomenon in which the model is excessively fitted to the train set, causing prediction accuracy for new data to decline and reducing generality.

http://sanghyukchun.github.io/59/

Sources:

  1. Reference to the content of the Alice intermediate machine learning course
  2. Overfitting image & image of 3 prediction types:https://22-22.tistory.com/35

공개 여정 구독

글이 올라오면 이메일로 보내드릴게요.

개발, 창업, 배움, 실패와 회고를 짧고 솔직하게 기록합니다. 검색으로 스쳐가는 독자가 아니라 여정을 따라오는 팬을 만들기 위한 뉴스레터입니다.

뉴스레터는 준비 중입니다. 그동안 RSS 로 구독하거나 이메일 로 알림을 요청해 주세요.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
Understandable IT Knowledge for Non-Majors
Next Post
Supervised Learning (Classification)