Choose your data science lens
The right lens makes the modelling decision visible.
Data science assignments can turn on the problem definition, the data, the features, the evaluation, the model choice, the deployment concern or the ethics. Identifying which of these is actually holding the work back is usually faster than trying a different algorithm.
↗
The problem, the data and the decision
Examine the difference between a data science task and a statistics question, classification, regression, clustering, ranking, forecasting and anomaly detection, what makes a problem worth a model, the target variable and how it was defined, the unit of analysis and the prediction horizon, the relative cost of a false positive and a false negative, and the point at which a simple rule beats everything else you could build.
◎
Data: sourcing, structure, quality and leakage
Study where data comes from and what it actually records, tabular, text, image, time series and geospatial data, missing values, duplicates, outliers and inconsistent categories, the difference between a data quality problem and a modelling problem, label quality and annotator disagreement, keeping the training and test sets apart, and the several ways leakage sneaks in through preprocessing, target contamination and repeated rows.
✦
Preprocessing, features and representation
Work with cleaning and imputation, encoding categorical variables, scaling and why order matters, outlier treatment, feature engineering from real domain knowledge, feature selection and the cost of a large search, dimensionality reduction, text vectorisation and embeddings, image feature extraction, the curse of dimensionality, and the discipline of fitting every transformation on the training data alone.
◌
Validation, metrics and the honest baseline
Study cross-validation and why a single split misleads on small data, the gap between training error and validation error and what it tells you, accuracy and its problems with imbalanced classes, precision, recall, the F1 score and the threshold, reading a confusion matrix, receiver operating and precision-recall curves, regression measures including mean absolute and root mean squared error, and choosing the measure that matches the decision rather than the one that flatters the model.
↗
Models: from a simple baseline to the complex one
Examine linear and logistic regression, tree-based models, ensembles and gradient boosting, nearest neighbours, support vector machines and neural networks, the accuracy and explainability trade-off, overfitting and underfitting, the bias and variance trade-off, hyperparameter tuning and the risk of tuning on the test set, and the argument that a complex model with no justification makes the assignment weaker rather than stronger.
◎
Unsupervised learning, time series and deployment
Study clustering and how to choose a number of groups, dimensionality reduction for visualisation, anomaly detection and what an anomaly score really means, the structure of time series with trend and seasonality, forecasting against a simple baseline, splitting over time rather than at random, concept drift, the inference cost and latency of a model, monitoring after deployment, and reproducibility as an operational concern rather than a formality.
✦
Interpretation, fairness and the ethics of a model
Examine interpreting a model well enough to explain a decision, feature importance and its limits, partial dependence and similar tools and where they mislead, subgroup performance, fairness measures and disparate impact, privacy and re-identification risk in supposedly anonymised data, consent and data governance, the danger of a model that scores well and is still wrong for the people it affects, and the case for sometimes deciding not to build a model at all.
✓
Communicating results and getting the work marked
Work on writing for a reader who will never run your notebook, the summary that states the decision and the result, the method section in enough detail to repeat, reporting a weak result without spin, tables and figures that carry a point instead of decorating a report, the difference between a demonstration and an evaluation, code and notebook hygiene, versioning and data provenance, and the questions a marker will ask about a submitted model.