Design regression and classification ML pipelines

Quick Overview

This task evaluates proficiency in designing and implementing end-to-end machine learning pipelines for tabular regression and classification, encompassing data cleaning, feature engineering, model selection, evaluation metrics, reproducibility, and interpretability.

Design regression and classification ML pipelines

Company: Citadel

Role: Data Scientist

Category: Machine Learning

Difficulty: hard

Interview Round: Online Assessment

Design and implement two end-to-end machine learning workflows on tabular data similar to common Kaggle datasets: ( 1) a regression task predicting a continuous target, and ( 2) a classification task predicting a binary or multiclass label. For each task, describe and execute: data cleaning (detect/handle missing values and outliers; encode categorical features; scale where appropriate); random shuffling with proper train/validation/test splits that avoid leakage (note time-series caveats if applicable); selection of a simple baseline and at least one stronger model (e.g., regularized linear models, tree-based methods); evaluation metrics (e.g., RMSE/MAE for regression; accuracy/ROC-AUC/F1 for classification) and why they fit the objective; cross-validation and hyperparameter tuning strategy; steps to ensure reproducibility (seeds, environment, data versioning) and interpretability (feature importance, partial dependence, calibration). Provide pseudocode or code-level steps and discuss expected pitfalls and how you would debug underperformance.

Overview: This task evaluates proficiency in designing and implementing end-to-end machine learning pipelines for tabular regression and classification, encompassing data cleaning, feature engineering, model selection, evaluation metrics, reproducibility, and interpretability.

Citadel logo
Citadel
Sep 6, 2025
hardData ScientistOnline AssessmentMachine Learning
16
0

Take‑Home: Two End‑to‑End ML Workflows on Tabular Data

Objective

Design and implement two complete machine learning workflows on tabular data (typical of common Kaggle datasets):

  • Regression: predict a continuous target.
  • Classification: predict a binary or multiclass label.

Assume you have a generic CSV dataset with a mix of numeric and categorical features and a clear target column. If the data are time‑ordered, note time‑series‑specific caveats.

Requirements (for each task)

  1. Data cleaning and preprocessing
    • Detect and handle missing values.
    • Detect and handle outliers.
    • Encode categorical features appropriately.
    • Scale features where appropriate.
  2. Train/validation/test protocol
    • Random shuffling and splits that avoid leakage.
    • If time‑series or grouped data, use proper split strategies (e.g., forward chaining, GroupKFold).
  3. Models
    • A simple baseline (e.g., dummy predictor or regularized linear model).
    • At least one stronger model (e.g., tree‑based, boosted trees).
  4. Evaluation
    • Regression: RMSE/MAE (and why).
    • Classification: accuracy, ROC‑AUC, F1 (and why). Use PR‑AUC for heavy class imbalance.
  5. Model selection
    • Cross‑validation strategy and hyperparameter tuning.
  6. Reproducibility
    • Random seeds, environment pinning, data versioning. Persist splits, models, and configs.
  7. Interpretability and reliability
    • Feature importance and partial dependence (or SHAP if available).
    • Calibration checks for classification.
  8. Deliverables
    • Pseudocode or code‑level steps for both workflows.
    • Discussion of expected pitfalls and how you would debug underperformance.