This was the whole assignment, not just one question.
Structure your answer as a narrative walkthrough of a real project, emphasizing decision points and trade-offs at each stage. Start with data understanding and validation, then move through modeling and evaluation, and end with actionable recommendations and reproducibility. Highlight how you align technical choices with business goals and fairness considerations.
Pro tip: Always connect technical steps to business impact—e.g., explain how you chose metrics based on cost of false positives vs. false negatives, and how fairness checks mitigate real-world harm. This shows you think like a product-minded ML engineer, not just a modeler.
Perform EDA: check schema, missing values, target leakage, class imbalance, and feature distributions. Document data quality issues and their potential impact.
Create train/validation/test splits (stratified if needed) and establish a simple baseline (e.g., majority class or logistic regression) to set a performance benchmark.
Train at least two models (e.g., tree-based and linear) with cross-validation and hyperparameter tuning. Apply preprocessing (imputation, scaling, encoding) within pipelines to avoid leakage.
Evaluate using business-aligned metrics (e.g., precision-recall AUC, F1, cost-sensitive). Handle class imbalance via resampling or class weights. Use feature importances or SHAP for error analysis.
Check fairness across subgroups (e.g., demographic parity, equal opportunity). Ensure reproducibility with seeds, environment files, and documented steps. Deliver a report with recommended model and rationale.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.