Construct a Churn-Prediction Pipeline Using Scikit-Learn
AppleData Scientist · Technical ScreenLast updated
This question tests practical machine learning engineering skills, specifically the ability to construct an end-to-end classification pipeline for imbalanced tabular data. It evaluates knowledge of preprocessing, model validation, probability calibration, and production packaging — core competencies assessed in data scientist interviews.
Scenario
Building a churn-prediction pipeline for a subscription business using scikit-learn.
Question
Describe, step-by-step, how you would construct, train, validate, and evaluate a churn-prediction model in scikit-learn, including preprocessing, model choice, hyper-parameter tuning, and packaging the final pipeline for production.
Hints
Mention Pipeline, ColumnTransformer, GridSearchCV, cross-validation, joblib.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.