Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Cross-Validation

5 min readApr 14, 2022

--

Press enter or click to view image in full size
Photo by Jeroen den Otter on Unsplash

Regression and classification Machine Learning models aim to predict a value or class from the variables contained in the data. Each model has its own algorithm to try to identify the patterns contained in the data that allow an accurate prediction to be made.

The models, in addition to being accurate, must be generalist, with the ability to interpret data never seen before and reach an adequate result. One way of evaluating this generalization capacity of the models is to apply Cross-Validation.

But what is Cross-Validation?

Press enter or click to view image in full size
Photo by Ana Municio on Unsplash

Cross-validation is a technique used as a way of obtaining an estimate of the overall performance of the model. There are several Cross-Validation techniques, but they basically consist of separating the data into training and testing subsets.

The training subset, as the name implies, will be used during the training process to calculate the hyperparameters of the model. To calculate the generalization capacity of the model, after the training stage, the test model is used.

--

--

Alexandre Rosseto Lemos
Alexandre Rosseto Lemos

Written by Alexandre Rosseto Lemos

Data Scientist @ Trustly | I write about things I learned that helped me in my journey through Data Science

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.