Using K-Fold Cross-Validation to Evaluate the Performance of Logistic Regression

A step-by-step Python recipe.

Adrian J. Mayer
Python in Plain English
8 min readMay 7, 2021

--

Photo by Annie Spratt on Unsplash

Cross-Validation Explained

Cross-validation is a method that can estimate the performance of a model with less variance than a single ‘train-test’ set split. It works by splitting the dataset into k-parts (i.e. k = 5, k = 10). Each time…

--

--

I hold 5 college degrees including a BBA in Finance, MBA, DBA, and post-doc in Applied Statistics. I work for a non-profit in Orlando, FL as a business analyst.