Machine Learning Foundations for LLM Work
The classical machine learning, statistics and probability the LLM courses assume, learned by building a ticket-triage model you can defend with numbers.
3 modules · 10 lessons~26 hoursUpdated 2026-11-13Certificate included
- Lessons10
- Quizzes10
- Sources67
- Of study~26h
About this course
About this course
Every later course assumes you can split data without leaking, read precision and recall, say what a confidence interval means and follow a gradient. This course teaches exactly that, with the LLM-era reader in mind: baselines and leakage-free splits, linear and logistic regression fitted by gradient descent in numpy, metrics, thresholds and calibration, overfitting and cross-validation, the probability and statistics behind every eval number, and vectors, embeddings and a small neural network on CPU. Each lesson works on the same synthetic support-ticket dataset, pairs a rigorous explanation with a short video, and ends with a quiz and exercises you do with Claude. The capstone builds a triage model end to end and writes the one-page memo that says whether to ship it.
About the running example
The examples follow Hollowbrook Systems, a fictional mid-size software company whose operations team runs the support inbox. The course ships a generator for about 6,000 synthetic tickets (subject, body, product area, plan, category, an urgent flag, hours to resolve) plus a small usage table, with a known data-generating process, so you can check calibration against the true probabilities and watch leakage happen on purpose. Support tickets exist in every company; nothing here needs domain knowledge, and every ticket, customer and name is invented.
What you'll learn.
- 1Frame a prediction task as inputs, labels, metric and decision, build majority-class and heuristic baselines, and say what a model must beat
- 2Split data without leakage (random, stratified, time-based), explain why validation and test sets have different jobs, and find the leaks in a pipeline
- 3Fit linear and logistic regression by gradient descent in numpy, then choose a classification threshold from precision, recall, ROC and PR curves and a calibration check
- 4Diagnose overfitting from learning curves, apply regularisation and cross-validation, and explain bias and variance and where double descent breaks the classical picture
- 5Compute proportions, expected values, conditional probabilities, standard errors and confidence intervals, and run a paired comparison that says whether a 5-point difference on 30 cases means anything
- 6Compute dot products, cosine similarity and matrix products by hand, use embeddings for nearest-neighbour search, and train a small MLP on CPU in PyTorch while explaining its forward pass and backpropagation
3 modules, 10 lessons.
12h 50m of lessons
Module 1 · 3 lessons · 3h 25m
Learning from data
What a learning problem is, the baselines a model must beat, splits that don't lie, and fitting a line by gradient descent.
- 1Problems, data and baselinesTurn a vague request into a prediction problem with inputs, a label, a metric and a decision, look hard at the data and its labels, and build the two baselines any model must beat.1h7-question quiz7 sources
- 2Train, validation, test and leakageWhy a model needs three sets with three different jobs, how random, stratified and time-based splits differ, and the ways information leaks from test into train, measured on the ticket data by committing each leak on purpose.1h 10m7-question quiz6 sources
- 3Loss functions and gradient descentFit a line to hours-to-resolve by hand in numpy, from defining a loss to taking its gradient, stepping downhill, choosing a learning rate and reading the loss curve, and see why every training run in the LLM courses reports the same curve.1h 15m7-question quiz7 sources
Module 2 · 3 lessons · 4h
Classifiers and generalisation
Logistic regression, the metrics and calibration that turn scores into decisions, and why models overfit and what to do about it.
- 4Logistic regression, step by stepFrom a weighted sum to a probability with the sigmoid, the cross-entropy loss and its gradient (the same shape as linear regression), a classifier you train in numpy and match against scikit-learn, and the softmax that turns it into a multi-class model and an LLM's output head.1h 15m7-question quiz6 sources
- 5Metrics, thresholds and calibrationThe confusion matrix and the metrics that read off it, ROC and precision–recall curves, a threshold chosen from the cost of each kind of mistake rather than 0.5 by habit, and the calibration check that tells you whether a probability of 0.8 means 80%.1h 20m7-question quiz7 sources
- 6Overfitting, regularisation and cross-validationWhy a model that fits its training tickets can fail on new ones, the bias–variance picture and where double descent breaks it, and the tools that keep a model honest: regularisation, early stopping, cross-validation with folds that respect time and groups, and a boosted-tree baseline fitted on the same split.1h 25m7-question quiz7 sources
Module 3 · 4 lessons · 5h 25m
The maths the later courses assume
Probability for evaluation, uncertainty and paired comparisons, vectors and embeddings, and a small neural network from scratch on CPU.
- 7Probability for evaluationProportions, Bernoulli and binomial trials, expected value and variance, conditional probability and Bayes' rule, and chance-corrected agreement, each worked on Hollowbrook's tickets and its two annotators.1h 15m7-question quiz6 sources
- 8Standard errors, intervals and paired testsHow sure an eval score is, how many cases it takes to tell two systems apart, and how to compare them on the same cases without fooling yourself, worked on the keyword rule and the logistic regression from earlier lessons.1h 20m7-question quiz7 sources
- 9Vectors, dot products and embeddingsThe linear algebra the LLM courses assume, done by hand on ticket vectors, then with TF-IDF and a small CPU embedding model to find a ticket's nearest neighbours.1h 20m7-question quiz7 sources
- 10A small neural network from scratchThe forward pass as two matrix products and a non-linearity, backpropagation as the chain rule applied layer by layer, and a training loop, first in numpy on the ticket features and then as the same model in PyTorch on CPU, scored against logistic regression with a paired test.1h 30m7-question quiz7 sources
Ticket triage you can defend
Build, evaluate and defend an urgency-and-category triage model for Hollowbrook's support inbox end to end, from a leakage-free split to calibrated probabilities, confidence intervals and a one-page memo that says whether to ship it.
Finish it. Get certified.
Complete every lesson of Machine Learning Foundations for LLM Work and you get a certificate with your name on it. Free, like the course.
- A public page with a certificate ID anyone can check
- Download it as a PDF
- Add it to LinkedIn in one click
Machine Learning Foundations for LLM Work, answered.
Is Machine Learning Foundations for LLM Work free?
Yes, for everyone: all 10 lessons, 10 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.
Do I get a certificate?
Yes. Finish every lesson of Machine Learning Foundations for LLM Work and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.
How long does Machine Learning Foundations for LLM Work take?
About 26 hours: 3 modules and 10 lessons, at your own pace. Your progress is saved to your account, on every device.
Which roles is it for?
It's on the Machine Learning Engineer roadmap: the courses those jobs ask for, in the order to take them.
What do I need before I start?
Python basics: functions, lists and dicts, and running a script from the terminal. Secondary-school algebra: straight lines, exponents and logarithms. No calculus: the course teaches the gradient idea it uses. Claude Code on a Claude subscription, and Python set up with uv (see the setup guides). No prior machine learning or statistics.
