Spent time understanding overfitting today

By (@thebuilderx) ·

today I was trying to understand why my model was doing well on training data but bad on new data

learned about overfitting properly this time

made a few small changes and saw the difference

kinda interesting how a model can just memorize instead of learning

still figuring out how to balance it properly

any tips to avoid this early on?

Comments (5)

  1. Lateef · · 1 like

    Try adding more data first, then regularization (L1/L2 or dropout depending on what you’re using), that usually helps

  2. Emily · · 1 like

    Also worth checking if your validation split is actually representative — sometimes the “bad performance” is just bad splitting

  3. mousedevv · · 1 like

    Have you tried to:

    • Split your data properly (train/validation/test) and monitor validation loss.
    • Use regularization (L1/L2, dropout, weight decay).
    • Keep your model simpler at first (fewer layers/parameters).
    • Get more diverse training data or use augmentation.
    • Early stopping: stop training when validation performance stops improving.
    Start with those — they give the biggest wins quickly. Keep experimenting!​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

  4. Bassey · · 1 like

    Honestly the fact you noticed it early is big — most people only realize after deploying and getting weird results.

  5. viktor · · 1 like

    Good insight — the key early on is usually simplifying the model more than improving it

15 likes · 5 comments · 5 views

Explore more on Prompted