DEV Community

Cover image for Underfitting and Overfitting Concepts in Machine Learning
Pranesh Chowdhury
Pranesh Chowdhury

Posted on • Edited on

2 1 2

Underfitting and Overfitting Concepts in Machine Learning

Underfitting and overfitting are issues that can occur in supervised machine learning problems. These problems involve training a model to learn a mapping from input data to output labels based on a given dataset.

Image description

Overfitting

The model shows high accuracy during the training phase but fails to show similar accuracy during the testing phase.

The model is too complex and learns not only the underlying patterns but also noise and outliers specific to the training set. While it performs exceptionally well on the training set, it struggles to generalize to new, unseen data in the testing phase.

Underfitting

The model fails to show satisfactory accuracy during the training phase.

The model is too simple and fails to capture the complexities in the data, resulting in poor performance in both the training and testing phases.

Actual Good fitting:

Training and testing overall performance is good.

Image description

Image description

Thanks for reading 💙✨

References:

https://www.superannotate.com/blog/overfitting-and-underfitting-in-machine-learning
https://www.geeksforgeeks.org/underfitting-and-overfitting-in-machine-learning/

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay