A Simple Introduction to Cross-Validation

Ayush Gupta
9 min readJan 1, 2024

Introduction

Machine learning is the process of creating models that can learn from data and make predictions or decisions. However, machine learning models are not perfect and may not always perform well on new, unseen data. This is because they may be overfitting the training data, which means they memorize the noise and details of the training data but fail to generalize to new data.

To avoid overfitting and ensure that the model can generalize well to new data, we need to evaluate its performance on different subsets of…

--

--

Ayush Gupta

I write about Software Engineering, Data Science, Productivity and Personal Growth | Sharing lessons learnt during 5+ years in the industry