
Cracking ML
The definitive set of 35 machine learning problems for ML engineer interviews. All NumPy from scratch, no sklearn/PyTorch. Covers linear models, classification, trees, unsupervised learning, evaluation, and feature engineering.
Unlock the full study plan
Upgrade to Pro to access the full curriculum.
What you will learn
This plan covers the classic machine learning algorithms asked about in ML engineer interviews, implemented in NumPy without scikit-learn or PyTorch. It has 35 problems in six sections: linear models, classification, trees and ensembles, unsupervised learning, evaluation and feature engineering.
Prerequisites
Python and NumPy, plus basic linear algebra and probability. The NumPy and Probability and Statistics study plans are good preparation.
The sections, in order
- Linear models: linear, logistic, ridge, lasso and softmax regression.
- Classification: k-nearest neighbours, Gaussian Naive Bayes, the averaged perceptron, LDA and a linear SVM trained with SGD.
- Ensemble methods and trees: decision trees for classification and regression, bagging, random forests, AdaBoost, gradient boosting, stacking and permutation importance.
- Unsupervised learning: k-means and k-means++, DBSCAN, agglomerative clustering, PCA, Gaussian mixtures, isolation forests and t-SNE affinities.
- Evaluation and model selection: k-fold cross-validation, log loss, ROC AUC, precision-recall and regression metrics.
- Feature engineering: missing-value imputation, categorical encoding, feature scaling and distance metrics.
Where to go next
Move on to neural networks with Cracking Deep Learning, or practice system design questions in ML system design. For a full preparation plan, read how to prepare for an ML engineer interview and the best ML interview prep platforms.