Sources
Every lesson is checked against the official Python, NumPy, scikit-learn and PyTorch documentation, and every example is run with Python 3.14 so its output and error messages match. Ideas from outside Python, NumPy, scikit-learn and PyTorch, such as class diagrams or a named principle, cite where they come from, and comparisons with other languages cite those languages' own documentation. These are the pages each lesson relies on.
The Python Standard Library
Other Python documentation
Python Packaging User Guide
NumPy
- Array creation Used in 0.2
- Broadcasting Used in 0.5, 1.2, 3.4, 6.8
- Copies and views Used in 0.3
- Data types Used in 0.1
- Glossary, axis Used in 0.4
- Indexing on ndarrays Used in 0.3
- Mathematical functions Used in 0.4
- NumPy user guide For the whole course
- numpy.clip Used in 1.11
- numpy.dot Used in 0.6, 1.3
- numpy.exp Used in 1.1
- numpy.histogram Used in 0.7
- numpy.isclose Used in 1.P
- numpy.isnan Used in 0.8
- numpy.linalg.det Used in 1.4
- numpy.linalg.eig Used in 1.5
- numpy.linalg.eigh Used in 1.5
- numpy.linalg.inv Used in 1.4
- numpy.linalg.lstsq Used in 3.5
- numpy.linalg.matrix_rank Used in 1.4
- numpy.linalg.norm Used in 1.2
- numpy.log Used in 1.1
- numpy.log2 Used in 1.11
- numpy.logaddexp Used in 3.10
- numpy.matmul Used in 0.6, 1.3, 6.1
- numpy.polyfit Used in 3.1
- numpy.reshape Used in 0.2
- numpy.savez_compressed Used in 6.P
- numpy.std Used in 0.5, 1.10
- numpy.unravel_index Used in 3.2
- numpy.zeros_like Used in 1.8
- Random Generator Used in 0.7, 1.9, 1.10
- Random sampling Used in 0.7
- Statistics Used in 0.4
- the absolute basics for beginners Used in 0.1
- the absolute basics for beginners Used in 0.2
- Universal functions (ufunc) basics Used in 0.4
- What is NumPy? Used in 0.1
scikit-learn
- Breast cancer Wisconsin (diagnostic) dataset Used in 2.8, 3.9
- Choosing the right estimator Used in 4.14, 4.15
- Classification metrics Used in 2.8
- classification_report Used in 2.P
- Clustering Used in 4.9
- Clustering, k-means Used in 2.2, 4.8
- ColumnTransformer for heterogeneous data Used in 4.1
- Common pitfalls and recommended practices Used in 2.10
- confusion_matrix Used in 6.9
- Cross-validation: evaluating estimator performance Used in 2.5, 2.9
- DBSCAN Used in 4.9
- Decision trees Used in 4.4
- DummyRegressor Used in 2.11
- Encoding categorical features Used in 2.3
- Ensembles: random forests Used in 4.5
- Feature extraction Used in 4.2
- Feature selection Used in 4.2
- fetch_california_housing Used in 4.P
- fetch_openml Used in 6.P
- Gaussian mixture models Used in 4.9
- Getting Started Used in 2.1
- Gradient-boosted trees Used in 4.6
- HistGradientBoostingRegressor Used in 4.P
- Imputation of missing values Used in 4.1
- Installing scikit-learn Used in 0.10
- kmeans_plusplus Used in 4.8
- KNeighborsClassifier Used in 2.4
- Linear models Used in 3.1, 3.8
- Linear models, Perceptron Used in 5.5
- LinearRegression Used in 3.5
- load_digits Used in 3.P, 6.9
- Logistic regression Used in 3.9
- LogisticRegression Used in 3.P
- make_moons Used in 2.6, 6.5
- Metrics and scoring Used in 4.15
- MLPClassifier Used in 6.2
- Multiclass and multioutput algorithms Used in 3.11
- Multiclass and multioutput algorithms, one-vs-the-rest Used in 5.P
- Naive Bayes Used in 4.3
- Nearest Neighbors Classification Used in 2.4
- Nested versus non-nested cross-validation Used in 4.13
- Novelty and outlier detection Used in 4.12
- Perceptron Used in 5.2
- Permutation feature importance Used in 4.5
- Pipelines and composite estimators Used in 2.10
- Preprocessing data Used in 3.7, 4.1
- Principal component analysis Used in 4.10
- RBF SVM parameters Used in 4.7
- Regression metrics Used in 2.7, 2.11
- scikit-learn user guide For the whole course
- Stochastic Gradient Descent Used in 3.6, 5.5
- Support vector machines Used in 4.7
- t-distributed Stochastic Neighbor Embedding Used in 4.11
- Text feature extraction Used in 2.3
- TimeSeriesSplit Used in 2.10
- train_test_split Used in 2.5
- Tuning the hyper-parameters of an estimator Used in 2.9, 2.P, 4.13
- Underfitting vs. Overfitting Used in 2.6
- Validation curves and learning curves Used in 4.13
- zero_one_loss Used in 2.7
Textbooks
- Goodfellow, Bengio and Courville, Deep Learning Used in 7.5
- Goodfellow, Bengio and Courville, Deep Learning (MIT Press, 2016) For the whole course
- Goodfellow, Bengio and Courville, Deep Learning, chapter 2: Linear Algebra Used in 0.2, 0.5, 0.6, 1.2, 1.3, 1.4, 1.5, 1.P
- Goodfellow, Bengio and Courville, Deep Learning, chapter 3: Probability and Information Theory Used in 1.1, 1.7, 1.9, 1.10, 1.11
- Goodfellow, Bengio and Courville, Deep Learning, chapter 4: Numerical Computation Used in 1.1, 1.6, 1.8, 1.P, 3.2, 3.3, 3.7, 3.11
- Goodfellow, Bengio and Courville, Deep Learning, chapter 5: Machine Learning Basics Used in 1.10, 2.1, 2.2, 2.5, 2.6, 2.7, 2.9, 3.1, 3.4, 3.5, 3.10, 5.4
- Goodfellow, Bengio and Courville, Deep Learning, chapter 6: Deep Feedforward Networks Used in 1.7, 3.10, 3.11, 5.1, 5.6, 6.1, 6.2, 6.4, 6.6
- Goodfellow, Bengio and Courville, Deep Learning, chapter 7: Regularization for Deep Learning Used in 3.8, 7.8
- Goodfellow, Bengio and Courville, Deep Learning, chapter 8: Optimization for Training Deep Models Used in 3.6, 3.P, 6.5, 6.9, 7.3, 7.6
- Prince, Understanding Deep Learning (MIT Press, 2023) Used in 1.6, 1.7, 1.8, 2.1, 2.2, 3.3, 6.1, 6.2, 6.3, 6.6, 7.9
Papers
- Alpaydin and Kaynak, Optical Recognition of Handwritten Digits, UCI Machine Learning Repository, 1998 Used in 3.11, 3.P
- Amershi et al., Software engineering for machine learning: a case study, ICSE-SEIP 2019 Used in 2.12, 4.14
- Ba, Kiros and Hinton, Layer Normalization, 2016 Used in 7.7
- Baydin, Pearlmutter, Radul and Siskind, Automatic differentiation in machine learning: a survey, Journal of Machine Learning Research 18, 2018 Used in 6.6, 6.7
- Block, The perceptron: a model for brain functioning. I, Reviews of Modern Physics 34, 1962 Used in 5.2, 5.3
- Bottou, Large-scale machine learning with stochastic gradient descent, COMPSTAT 2010 Used in 3.6
- Breiman, Bagging predictors, Machine Learning 24, 1996 Used in 4.5
- Breiman, Friedman, Olshen and Stone, Classification and Regression Trees, Chapman and Hall/CRC, 1984 Used in 4.4
- Breiman, Random forests, Machine Learning 45, 2001 Used in 4.5
- Chai and Draxler, Root mean square error (RMSE) or mean absolute error (MAE)?, Geoscientific Model Development 7(3), 2014 Used in 2.11
- Chandola, Banerjee and Kumar, Anomaly detection: a survey, ACM Computing Surveys 41(3), 2009 Used in 4.12
- Chen and Guestrin, XGBoost: a scalable tree boosting system, KDD 2016 Used in 4.6
- Cortes and Vapnik, Support-vector networks, Machine Learning 20, 1995 Used in 4.7
- Cover and Hart, Nearest neighbor pattern classification, IEEE Transactions on Information Theory 13(1), 1967 Used in 2.4
- Cox, The regression analysis of binary sequences, Journal of the Royal Statistical Society B 20(2), 1958 Used in 3.9, 5.5
- Cybenko, Approximation by superpositions of a sigmoidal function, Mathematics of Control, Signals and Systems 2, 1989 Used in 6.3
- Dempster, Laird and Rubin, Maximum likelihood from incomplete data via the EM algorithm, Journal of the Royal Statistical Society B 39(1), 1977 Used in 4.9
- Domingos and Pazzani, On the optimality of the simple Bayesian classifier under zero-one loss, Machine Learning 29, 1997 Used in 4.3
- Domingos, A few useful things to know about machine learning, Communications of the ACM 55(10), 2012 Used in 2.12, 4.2
- Fawcett, An introduction to ROC analysis, Pattern Recognition Letters 27(8), 2006 Used in 2.8
- Fisher, The use of multiple measurements in taxonomic problems, Annals of Eugenics 7(2), 1936 Used in 2.9
- Freund and Schapire, A decision-theoretic generalization of on-line learning and an application to boosting, Journal of Computer and System Sciences 55(1), 1997 Used in 4.6
- Freund and Schapire, Large margin classification using the perceptron algorithm, Machine Learning 37, 1999 Used in 5.3
- Friedman, Greedy function approximation: a gradient boosting machine, Annals of Statistics 29(5), 2001 Used in 4.6
- Gallant, Perceptron-based learning algorithms, IEEE Transactions on Neural Networks 1(2), 1990 Used in 5.2
- Gebru et al., Datasheets for datasets, Communications of the ACM 64(12), 2021 Used in 2.12
- Geman, Bienenstock and Doursat, Neural Networks and the Bias/Variance Dilemma, Neural Computation 4(1), 1992 Used in 2.6
- Gorman, Williams and Fraser, Ecological Sexual Dimorphism and Environmental Variability within a Community of Antarctic Penguins, PLOS ONE 9(3), 2014 Used in 0.8, 0.P, 2.P
- Goyal and others, Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour, 2017 Used in 7.4
- Grinsztajn, Oyallon and Varoquaux, Why do tree-based models still outperform deep learning on tabular data?, NeurIPS Datasets and Benchmarks, 2022 Used in 4.14, 4.15
- Harris et al., Array programming with NumPy, Nature 585, 2020 Used in 0.1
- He, Zhang, Ren and Sun, Deep Residual Learning for Image Recognition, 2016 Used in 7.9
- He, Zhang, Ren and Sun, Delving Deep into Rectifiers, 2015 Used in 7.6
- He, Zhang, Ren and Sun, Identity Mappings in Deep Residual Networks, 2016 Used in 7.9
- Hebb, The Organization of Behavior, 1949 (reissued 2002) Used in 5.1
- Hendrycks and Gimpel, Gaussian Error Linear Units (GELUs), 2016 Used in 6.2
- Hodgkin and Huxley, A quantitative description of membrane current and its application to conduction and excitation in nerve, Journal of Physiology 117, 1952 Used in 5.1
- Hoerl and Kennard, Ridge regression: biased estimation for nonorthogonal problems, Technometrics 12(1), 1970 Used in 3.8
- Hornik, Approximation capabilities of multilayer feedforward networks, Neural Networks 4(2), 1991 Used in 6.3
- Horst, Hill and Gorman, palmerpenguins: Palmer Archipelago (Antarctica) penguin data, 2020 Used in 0.8, 0.9, 0.P, 1.9, 2.3, 2.4, 2.P, 3.4, 5.P
- Hotelling, Analysis of a complex of statistical variables into principal components, Journal of Educational Psychology 24(6), 1933 Used in 4.10
- Ioffe and Szegedy, Batch Normalization, 2015 Used in 7.7
- Kaplan and others, Scaling Laws for Neural Language Models, 2020 Used in 7.12
- Kaufman, Rosset, Perlich and Stitelman, Leakage in data mining: formulation, detection, and avoidance, ACM TKDD 6(4), 2012 Used in 2.10
- Kingma and Ba, Adam: A Method for Stochastic Optimization, 2015 Used in 7.3
- Kuhn and Johnson, Feature Engineering and Selection, Chapman and Hall/CRC, 2019 Used in 4.1, 4.2
- LeCun, Bottou, Bengio and Haffner, Gradient-based learning applied to document recognition, 1998 Used in 6.P
- LeCun, Bottou, Orr and Müller, Efficient BackProp, in Neural Networks: Tricks of the Trade, Springer, 2012 Used in 3.7
- Leshno, Lin, Pinkus and Schocken, Multilayer feedforward networks with a nonpolynomial activation function can approximate any function, Neural Networks 6(6), 1993 Used in 6.3
- Liu, Ting and Zhou, Isolation forest, IEEE International Conference on Data Mining, 2008 Used in 4.12
- Lloyd, Least squares quantization in PCM, IEEE Transactions on Information Theory 28(2), 1982 Used in 4.8
- Loshchilov and Hutter, Decoupled Weight Decay Regularization, 2019 Used in 7.3, 7.8
- Loshchilov and Hutter, SGDR: Stochastic Gradient Descent with Warm Restarts, 2017 Used in 7.4
- Manning, Raghavan and Schütze, Introduction to Information Retrieval, chapter 13, Cambridge University Press, 2008 Used in 4.3
- McCulloch and Pitts, A logical calculus of the ideas immanent in nervous activity, Bulletin of Mathematical Biophysics 5, 1943 Used in 5.1
- McInnes, Healy and Melville, UMAP: uniform manifold approximation and projection for dimension reduction, 2018 Used in 4.11
- Micikevicius and others, Mixed Precision Training, 2018 Used in 7.12
- Minsky and Papert, Perceptrons: An Introduction to Computational Geometry, MIT Press, 1969 (reissued 2017) Used in 5.6
- Mitchell et al., Model cards for model reporting, FAT* 2019 Used in 4.P
- Olazaran, A sociological study of the official history of the perceptrons controversy, Social Studies of Science 26(3), 1996 Used in 5.6
- Pace and Barry, Sparse spatial autoregressions, Statistics and Probability Letters 33(3), 1997 Used in 4.2, 4.P
- Pascanu, Mikolov and Bengio, On the difficulty of training recurrent neural networks, 2013 Used in 7.5
- Pearson, On lines and planes of closest fit to systems of points in space, Philosophical Magazine 2(11), 1901 Used in 4.10
- Quinlan, Induction of decision trees, Machine Learning 1, 1986 Used in 4.4
- Robbins and Monro, A stochastic approximation method, Annals of Mathematical Statistics 22(3), 1951 Used in 3.6
- Rosenblatt, The perceptron: a probabilistic model for information storage and organization in the brain, Psychological Review 65(6), 1958 Used in 5.2, 5.3
- Rousseeuw, Silhouettes: a graphical aid to the interpretation and validation of cluster analysis, Journal of Computational and Applied Mathematics 20, 1987 Used in 4.8
- Ruder, An overview of gradient descent optimization algorithms, 2016 Used in 3.3
- Rudin, Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead, Nature Machine Intelligence 1, 2019 Used in 4.14
- Rumelhart, Hinton and Williams, Learning representations by back-propagating errors, Nature 323, 1986 Used in 5.6, 6.4
- Saito and Rehmsmeier, The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets, PLOS ONE 10(3), 2015 Used in 4.15
- Shannon, A Mathematical Theory of Communication, Bell System Technical Journal 27(3), 1948 Used in 1.11
- Smilkov, Carter, Sculley, Viégas and Wattenberg, Direct-manipulation visualization of deep networks, 2017 Used in 6.5
- Smith, Cyclical Learning Rates for Training Neural Networks, 2017 Used in 7.4
- Telgarsky, Benefits of depth in neural networks, 2016 Used in 6.3
- Tibshirani, Regression shrinkage and selection via the lasso, Journal of the Royal Statistical Society B 58(1), 1996 Used in 3.8
- Varma and Simon, Bias in error estimation when using cross-validation for model selection, BMC Bioinformatics 7, 2006 Used in 4.13
- Wattenberg, Viégas and Johnson, How to use t-SNE effectively, Distill, 2016 Used in 4.11
- Widrow and Hoff, Adaptive switching circuits, IRE WESCON Convention Record, 1960 Used in 5.4
- Widrow and Lehr, 30 years of adaptive neural networks: perceptron, Madaline, and backpropagation, Proceedings of the IEEE 78(9), 1990 Used in 5.4, 5.5
- Xiao, Rasul and Vollgraf, Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithms, 2017 Used in 7.P
- Zhang, Bengio, Hardt, Recht and Vinyals, Understanding deep learning requires rethinking generalization, 2017 Used in 7.10
Other
- 3Blue1Brown, Essence of Linear Algebra Used in 1.4, 1.5
- Google Colab: Frequently Asked Questions Used in 7.1
- Kaggle: Notebooks documentation Used in 7.1
- Karpathy, A Recipe for Training Neural Networks, 2019 Used in 7.10, 7.P
- Karpathy, micrograd: a tiny autograd engine Used in 6.7, 6.8
- Nielsen, Neural Networks and Deep Learning Used in 7.5
- Nielsen, Neural Networks and Deep Learning, chapter 1 Used in 6.9, 6.P
- Nielsen, Neural Networks and Deep Learning, chapter 2: How the backpropagation algorithm works Used in 6.4, 6.5
- Srivastava, Hinton, Krizhevsky, Sutskever and Salakhutdinov, Dropout, 2014 Used in 7.8
- Tieleman and Hinton, Neural Networks for Machine Learning, lecture 6.5: RMSProp, 2012 Used in 7.3