When I started working on customer churn prediction, it was tempting to focus on the model: try Logistic Regression, try Random Forest, then compare the scores.
But a model is only one part of the work. Before training anything, you need to decide what “churn” means, check that the data makes sense and choose a way to evaluate the model that reflects the problem you’re trying to solve.
Here’s the workflow I use to think through a churn project in Python.
First, decide what counts as churn
“Churn” can mean different things depending on the business. For a subscription service, it might mean a customer cancelled. For another product, it could mean that a customer stopped buying or using the service for a set period.
That definition affects the whole project, so it’s worth making it explicit.
There’s also a timing question: when are you trying to make the prediction?…