one note at a time
What machine learning is and why it works — the types of learning, and the Python toolkit behind them.
Missing values, categorical encoding, feature scaling, outliers, and the train-test split.
Least-squares by hand and in scikit-learn, the matrix formulation, and what the model assumes.
Loss functions, gradient descent, the learning rate, and how many rows each update sees.
Scoring a fitted regression — the three error averages that live in the units of the target, the two ratio-based scores that do not, and the residual plots that catch a good score sitting on top of a bad fit.
Evaluating model generalisation — why single train-test splits can be a lottery, the mechanics of K-Fold and Stratified K-Fold cross-validation, and the strict protocols required to prevent data leakage.
Transitioning to classification — why linear regression fails on discrete targets, the mathematical necessity of the sigmoid curve, and the mechanics of binary and multiclass decision boundaries.
Measuring classifier performance — decomposing predictions with the 2x2 confusion matrix, navigating the accuracy paradox on imbalanced data, and tuning thresholds with precision, recall, F-scores, and ROC-AUC.
Ensuring model robustness — balancing the bias-variance tradeoff, controlling model complexity using L1, L2, and Elastic Net penalties, and understanding how the curse of dimensionality impacts model fit.
Descriptive statistics, covariance, and correlation.
Fundamental probability and the addition/multiplication rules.
Probability distributions and Bayes’ theorem.
Theoretical frameworks for sampling, probability, and metrics.
Values and types, variable naming, expressions and operators, f-strings, and input/output.
Making decisions with if/elif/else, and repeating work with for and while loops.
Strings and slicing, lists, tuples, dictionaries and sets — methods and mutability traps.
Arrays and dtypes, indexing and views, broadcasting, and aggregations along an axis.
Series and DataFrames — reading, inspecting, cleaning, selecting and grouping tabular data.
Centre and spread, measuring relationships between variables, and the EDA workflow.
Choosing the right chart, then drawing it with Matplotlib, Seaborn or Plotly.
Class Test 1 revision packages and practice sets, covering NumPy arrays, collections, Pandas, exploratory data analysis, and Matplotlib.