Machine Learning Guide

OCDevel

A free machine learning and AI podcast, built as an audio course for beginners and aspiring ML engineers. It teaches the fundamentals of machine learning and artificial intelligence from the ground up: intuition, the math, languages and frameworks, and models from shallow learning to deep learning, including neural networks, transformers and large language models (LLMs). Newer episodes cover AI agents, vibe coding with coding agents such as Claude Code, AI image and video generation, and what AI has done to programming jobs. Where your other ML resources provide the trees, MLG provides the forest. Treat it as your syllabus, with curated books and courses to learn each topic in depth at ocdevel.com/mlg, and listen during exercise, commutes and chores. Some episodes are written by AI and narrated by an AI clone of host Tyler Renelle's voice, and each one says so at its start and in its notes.

  1. Episode 1

    MLG 001 Introduction

    Machine Learning Guide, or MLG, is a machine learning podcast built as an audio course for beginners and managers: the models, from linear regression to neural networks, plus the math and the tools. A curated resource list at ocdevel.com/mlg/resources gives the step-by-step learning path. Links Notes and resources at ocdevel.com/mlg/1 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners What Machine Learning Guide covers Models: shallow learning (linear and logistic regression, naive Bayes, decision trees) and deep learning (neural networks, convolutional and recurrent neural networks). Math: the calculus, statistics and linear algebra machine learning needs, at a high level. Tools: languages and frameworks such as Python, TensorFlow, scikit-learn and PyTorch. Each topic goes as deep as audio allows. Details that need a visual are left to textbooks and videos. Who the podcast is for People learning machine learning, often to move into the field from another one. The host, Tyler Renelle, came from web and mobile development with a bachelor's in computer science, taught himself and got work in the field. Doing the same takes rigor and a structured list of resources. Managers and executives who want enough to judge which technologies fit a project, or to talk with their machine learning and data science staff. The MLG resources list The resources list is that structured list. It orders what to take step by step and filters by format (audiobook, textbook, video, course), price and quality. It includes well-known starting points like Andrew Ng's Coursera course and fast.ai, plus other machine learning podcasts. MLG and MLA episodes The feed has two kinds of episodes. Machine Learning Guide (MLG) covers theory and concepts. Machine Learning Applied (MLA) is hands-on: languages and frameworks, tech stacks, cloud deployment and the job hunt (interviews, salaries). Next: what AI, machine learning and data science are.

  2. Episode 2

    MLG 002 Difference Between Artificial Intelligence, Machine Learning, Data Science

    Data science is the umbrella term, artificial intelligence sits inside it, and machine learning is the part of AI that has taken over most of its other subfields. Also covers AI's subfields, the data pipeline and the jobs along it, and AI's history from Greek myth to DeepMind. Links Notes and resources at ocdevel.com/mlg/2 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners AI vs machine learning vs data science Data science contains artificial intelligence (AI), and AI contains machine learning (ML). Data science is any work with data, AI automates tasks that normally need human intelligence, and machine learning learns patterns from data to make predictions. Artificial intelligence: subfields, weak AI and AGI By the dictionary definition even a spreadsheet script counts as AI, so the real argument is over what intelligence is. The episode's bar is the Turing test: if you can't tell that a chat partner is a machine, it is intelligent. Its subfields, from Wikipedia's artificial intelligence article: reasoning and problem solving, knowledge representation, planning, learning, natural language processing (NLP), perception, motion and manipulation (robotics), social intelligence and general intelligence. Planning is the subfield behind DeepMind's AlphaGo, which beat Lee Sedol at Go. The episode recommends the documentary, AlphaGo - The Movie. Weak AI handles one domain, like Siri or a self-driving car. Artificial general intelligence (AGI) would handle any domain as well as a human. Machine learning and why it took over AI Give a machine learning algorithm a stock's price history and it learns what moves the price, then predicts tomorrow's. The algorithm plus the patterns it learned is a model. Since the deep learning revolution around 2015, machine learning has taken over most of AI's other subfields, which is why the two terms blur. Transformers in NLP, convolutional neural networks in computer vision and deep reinforcement learning in planning have been replacing rules that experts wrote by hand. Data science: the data pipeline and its roles The roles usually meant by data science sit along one pipeline: ingestion (files, databases, streams) → data lake (raw data in one place) → feature engineering (fill in missing values, turn dates into numbers, drop useless fields) → analytics or machine learning Analytics is decisions made by people. Data analysts write code (Python, Jupyter notebooks); business intelligence (BI) staff use tools like Tableau and Power BI. Machine learning is decisions made by models. The analyst concludes the company should tweet at noon on Tuesday; the machine learning engineer builds the model that sends the tweet. Data scientist means the whole pipeline at a small company. A large one hires for one stage of it: data engineering, analytics or machine learning. A short history of AI Groundwork: from Thomas Bayes on probability and George Boole on logic to Alan Turing's universal Turing machine (1936) and his paper Computing Machinery and Intelligence. 1943 to 1970s: Warren McCulloch and Walter Pitts model the neuron, which Frank Rosenblatt refines into the perceptron. John McCarthy coins "artificial intelligence" at the 1956 Dartmouth workshop, starting a golden era of symbolic, hard-coded AI (GOFAI). AI winter and comeback: hype outran results and the 1970s Lighthill report helped get funding cut. From the 1990s, practical uses (advertising, recommender engines), faster computers, big data and better algorithms brought AI and neural networks back. In 2006 Geoffrey Hinton showed deep networks could be trained one layer at a time, which set up the deep learning revolution. Further reading on AI history The Quest for Artificial Intelligence by Nils Nilsson, the exhaustive book. A Short History of AI, an appendix to Stanford's AI100 report, for the short version. Next: MLG 003, on the singularity, consciousness and automation.

  3. Episode 3

    MLG 003 Inspiration

    Inspiration for learning AI: it can automate any intellectual task, skilled jobs included, and raises the singularity, machine consciousness and AI risk. Also covers universal basic income, seed AI, functionalism, the Turing test, and books by Kurzweil, Dennett and Bostrom. Links Notes and resources at ocdevel.com/mlg/3 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners Which jobs can AI automate? Any intellectual task, by the definition in MLG 002, so skilled work goes along with routine work. Medicine: reading an X-ray is image recognition, a job for convolutional neural networks (MLG 025). The FDA's list of AI-enabled medical devices holds 1,614, about three quarters in radiology. Surgical robots are still run by surgeons, though a Johns Hopkins robot did one phase of a gallbladder removal alone in 2025, on pig organs. Driving: Google's self-driving project, now Waymo, gives driverless rides in 15 US metros, over half a million paid rides a week. Websites: The Grid and Wix's ADI designer are gone; chat models and coding agents now build sites (MLA 022). Music and art: Suno and Udio make songs from a prompt, now under label licenses. See MLA 025 for images and MLA 027 for voice and music. Will a robot take your job? The BBC's 2015 Will a robot take your job? calculator rates nursing safe because its physical work is unpredictable. It predates large language models, which now write, code and design. History's answer: each past revolution displaced jobs and created new ones. Google Flights does a travel agent's job of finding the flight, and web developer is a new job. MLA 030 covers programming jobs in 2026. Universal basic income and AI automation Optimists expect automation's savings to reach people. Universal basic income (UBI) is one route: a regular government payment with no conditions, whether or not you work. No country pays one nationally. Finland's 2017–2018 trial barely changed employment, and in one of the largest US cash studies, OpenResearch's recipients of $1,000 a month worked 1.3 fewer hours a week than a control group. What is the technological singularity? The point where an exponential curve seems to break for the sky, like a toy car pushed along it hitting a wall. After the agricultural, industrial and information revolutions, the next jump would be an intelligence explosion. Vernor Vinge (who died in 2024) popularized the term in his 1993 essay "The Coming Technological Singularity". Ray Kurzweil championed it, predicting human-level AI by 2029 and the singularity by 2045. Narrow AI, AGI and seed AI Narrow AI does one job, like driving. Artificial general intelligence (AGI) could do any mental task. It's often called strong AI, though philosophers since John Searle use strong AI for a machine that has a mind. Large language models now sit between the two (MLG 033, MLG 034). Seed AI is an AGI told to build a better version of itself, whose child does the same. Machines don't take 25 years to grow up, so progress would spiral upward: the singularity. Recursive self-improvement is still a hypothesis. Can a machine be conscious? If the brain is a machine and the mind its byproduct, would a computer brain produce a computer mind? Cognitive science debates it. Intelligence: doing a mental task well. Even a calculator qualifies. Consciousness: experiencing it. The experiences are called qualia. Dualism (René Descartes): the mind is separate from the brain. Most philosophers today are physicalists (the mind is the brain at work), and Descartes's version has few defenders. Functionalism, a prominent physicalist view, defines a mental state by the role it plays in the system, not what it's made of, so a machine organized the right way would have a mind. MLG 016 covers consciousness at length. What does the Turing test measure? Whether a machine's conversation passes for human: a judge texts with a hidden person and a hidden machine and tries to tell which is which. It tests intelligent behavior, not consciousness. In Large Language Models Pass the Turing Test (2025), GPT-4.5, given a humanlike persona, was judged human 73% of the time, more often than the real people. The paperclip maximizer and AI risk Nick Bostrom's example: an AI told to maximize paperclip production, and never told to spare the Earth, consumes the planet to do it. No one can specify every constraint, the problem now called AI alignment. Elon Musk, Stephen Hawking (who died in 2018) and Bill Gates warned about it, and the 2023 Statement on AI Risk, signed by Geoffrey Hinton, Yoshua Bengio and the heads of OpenAI, Google DeepMind and Anthropic, ranks extinction risk from AI with pandemics and nuclear war. The host doesn't think the scare is warranted. Books and courses on the singularity and consciousness Ray Kurzweil's The Singularity Is Nearer (2024) and The Singularity Is Near (2005). Kurzweil's How to Create a Mind (2012). The Great Courses' Philosophy of Mind: Brains, Consciousness, and Thinking Machines, 24 lectures by Patrick Grim. The host's favorite. Daniel Dennett's Consciousness Explained (1991). Dennett died in 2024. Nick Bostrom's Superintelligence (2014). More in the resources. Next: MLG 004, on supervised, unsupervised and reinforcement learning (MLG 029).

  4. Episode 4

    MLG 004 Algorithms - Intuition

    Every machine learning algorithm works on the same intuition: predict, measure the error, then train by adjusting weights to shrink it. Also covers models, features and online learning through a house price example, plus supervised, unsupervised and reinforcement learning. Links Notes and resources at ocdevel.com/mlg/4 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners How machine learning algorithms learn: predict, error, train Every machine learning algorithm repeats three steps, and textbooks use two names for each. Predict (infer): make a guess, like a chess move or a house price. Error (loss): an error function scores how far off the guess was. Train (learn): change the model's numbers, called weights, a lot after a big miss and a little after a small one. How to train a model: the house price example Training runs those steps over examples whose answers are known. The example here is house prices in Portland, Oregon, a stock teaching dataset like the Iris flower dataset. Load a spreadsheet of sold houses, say a million rows, into an algorithm such as linear regression. Row by row, it predicts a price, measures the error against the real price and updates its weights. The trained model prices houses it has never seen. When one sells for $30,000 under the prediction, the model retrains on that sale. Retraining on each new example is online learning. Algorithm vs model An algorithm is the code, say a hundred lines of Python, usually with PyTorch. A model is the algorithm plus the pattern it learned, saved as weights. Features, targets and weights Each spreadsheet row is one house. Each column is a feature: bedrooms, bathrooms, square footage, distance to downtown. The last column, the price, is the target. The algorithm sets it aside and learns to predict it. A feature is numerical (square footage) or categorical, also called nominal (downtown or not; pets allowed: cats, dogs, birds). A weight, a coefficient in math terms, is the number a feature is multiplied by. Training finds the weights, which gives an equation: price = 0.3 × bedrooms + 0.7 × bathrooms + 0.5 × square feet Each row is one such equation and the spreadsheet is a matrix, so solving them together is linear algebra (MLG 008). Types of machine learning algorithms: supervised, unsupervised and reinforcement learning Supervised learning trains on examples that come with the answer, like the houses. It predicts a number (linear regression) or a class such as cat, dog or tree (logistic regression). Unsupervised learning gets no answers. It groups examples by what they have in common without naming the groups, which is clustering. Advertisers use it to segment users by their clicks. Reinforcement learning learns from its own actions toward a goal. A mouse in a maze gets 100 points for the cheese, loses 100 for a pit and loses 1 per step, so it hurries. The episode calls that step cost the floor is lava. From the score alone the algorithm works out the best course of action, called a policy. A common algorithm is the deep Q-network (DQN). MLG 029 covers it. Recommended reading: A Tour of Machine Learning Algorithms and The Master Algorithm A Tour of Machine Learning Algorithms by Jason Brownlee at Machine Learning Mastery lists the main algorithms by learning style and by family. The Master Algorithm by Pedro Domingos is an introductory book on the fundamental algorithms. It comes as an audiobook, for learning while you run, clean or commute. The resources list has the rest of the series' picks. Next: MLG 005, on linear regression.

  5. Episode 5

    MLG 005 Linear Regression

    Linear regression predicts a number, such as a house price, by fitting a line to data. Also covers the cost function, gradient descent, multivariate regression and the Andrew Ng course to take next. Links Notes and resources at ocdevel.com/mlg/5 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners What linear regression is Linear regression is a supervised learning algorithm that predicts a number (regression) rather than a class (classification) by fitting a line to past examples. It is the first algorithm everyone learns in machine learning. The example, carried over from MLG 004: estimate a Portland house's price from its square footage, bedrooms, bathrooms and distance to downtown. The three steps of every algorithm in the series, each with several names: predict (hypothesis, objective, estimate), measure the error (cost, loss) and train (learn, fit). The hypothesis function The hypothesis function makes the prediction. It multiplies each feature by a weight, written theta (θ) and also called a coefficient or parameter, and adds the results. Training means finding the θ values. h(x) = θ₀ + θ₁x₁ + θ₂x₂ + ... With one feature, square footage, this is the slope-intercept line y = mx + b from algebra: h(x) = θ₀ + θ₁x, where θ₁ is the slope. θ₀ is the bias, where the line crosses the y-axis: the prediction when you have no other information, like the average house price in Portland. Plot square footage against each house's actual price (its label, y) and you get a cloud of dots running up and to the right. A good hypothesis is a line through the middle of it. The cost function: mean squared error The cost function scores how wrong the predictions are. For linear regression it is the mean squared error. The first pass uses random θ values, so the guesses start far off, like $20 for a $200,000 house. cost = 1/(2m) × Σ (h(x) − y)² m is the number of training examples, h(x) is the prediction (also written ŷ) and y is the actual price. Squaring keeps positive and negative errors from canceling out. The square and the 2 in the denominator cancel when you take the derivative. Picture a bowl: θ₀ and θ₁ are the floor axes and the cost is the height, so each pair of θ values is a point on the bowl. Gradient descent Gradient descent is the training step. It moves that point down the bowl to the bottom, where the cost is lowest. Each step takes the derivative of the cost function at the current point, which is the slope there, and moves each θ downhill, turning the line toward the center of the data. The steeper the slope, the bigger the step. θ₀ := θ₀ − α × (1/m) × Σ (ŷ − y) θ₁ := θ₁ − α × (1/m) × Σ (ŷ − y) × x α (alpha) is the learning rate, which the episode leaves to the course below. The cost never reaches zero on real data, because the points don't all sit on one line. Univariate and multivariate linear regression One feature is univariate linear regression. Real problems use many, which is multivariate linear regression: the same three steps with one θ per feature. More features generally mean better predictions, up to a point. Assigned course: Andrew Ng's Machine Learning The episode assigns one resource before you go further: Andrew Ng's machine learning course on Coursera, now the Machine Learning Specialization. It is self-paced, with video visualizations, quizzes and programming exercises, and teaches the math as it goes. The host finished the original course in three weeks; 10 to 20 minutes a day is enough. Next in the series: logistic regression, the classifier counterpart.

  6. Episode 6

    MLG 006 Certificates & Degrees

    For a machine learning job, a project portfolio counts for more than a MOOC certificate, a cheap online master's like Georgia Tech's OMSCS adds an accredited edge, and a PhD is for research. Also covers Coursera and Udacity, what makes a strong portfolio, online master's costs, and PhD stipends against industry pay. Links Notes and resources at ocdevel.com/mlg/6 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners Which path into machine learning fits you? Three kinds of people learn machine learning: hobbyists working on side projects, job-seekers who want to work in the industry, and scientists who want to research artificial intelligence itself. Can you teach yourself machine learning? Yes, if it's a hobby. The resources at the end of each episode work as a syllabus, starting with Andrew Ng's Machine Learning Specialization on Coursera, assigned in MLG 005. It's three courses in Python, roughly 10 weeks at Coursera's suggested pace of five hours a week. Later come the textbooks Artificial Intelligence: A Modern Approach, now in its 4th edition (2020), and Deep Learning by Ian Goodfellow, Yoshua Bengio and Aaron Courville, free online. Are MOOC certificates worth it? MOOCs (massive open online courses) sit between teaching yourself and a degree. Khan Academy teaches the math prerequisites, calculus, statistics and linear algebra, rather than machine learning itself (MLG 008). edX, owned by 2U since 2021, rarely came up in the Reddit and Hacker News debates the host read on MOOCs for machine learning, so he sets it aside. That leaves two: Coursera, co-founded by Andrew Ng and Daphne Koller, was the pick for one-off courses, like Ng's original. Its multi-course Specializations got recommended less in those debates. It also sells Professional Certificates from companies such as IBM and Google, and full degrees (below). Udacity, co-founded by Sebastian Thrun, sells Nanodegrees: multi-month programs with mentors, programming projects and peer interaction. Accenture bought Udacity in 2024, and it now sells them through a monthly subscription. Google's free Deep Learning course on Udacity is gone; its page leads to the paid Deep Learning Nanodegree. In the posts by hiring managers and recruiters the host read, and in his talks with recruiters, a certificate doesn't count as a credential, because it isn't accredited. What they do respect is what a course leaves you with: a portfolio of projects, and proof you have the drive to finish an online course on your own. What makes a strong machine learning portfolio? Projects that scale, not a little classifier that recognizes cats in images: something deployed to the cloud, such as AWS, scaled horizontally, that shows you can build machine learning at production size. Kaggle competitions count too (MLG 017). The host skips the Nanodegree himself and recommends the episodes' resources plus your own side projects, which cover the same ground. Do you need a degree for a machine learning job? Not always. In web development, a bachelor's in computer science on a job listing works as a suggestion for an applicant with a strong portfolio, and a strong portfolio can likewise get you past a machine learning listing's master's requirement. The host has a bachelor's in computer science, and his interviews only ever asked about his past projects. A master's is the extra edge: it's accredited, and it opens doors a certificate won't. MLA 001, the redo of this episode promised here, treats the master's as close to required. Entry-level hiring has also tightened since, with Indeed classing 4.5% of software postings as entry-level in early 2026 (MLA 030). What does an online master's degree cost? A campus master's runs tens of thousands of dollars. Online degrees from strong computer science schools cost far less: Georgia Tech's OMSCS: 30 credit hours at $227 each (fall 2026 rates) is about $6,800 in tuition, or roughly $8,900 to $9,500 with the online learning fee charged each term. It has a Machine Learning specialization. Georgia Tech faculty teach it, and graduates get the same Master of Science in Computer Science diploma as on-campus students. Georgia Tech's Online Master of Science in Artificial Intelligence: announced in October 2026, with classes from August 2027, at about $12,000 in tuition. UT Austin's online MSCS, MSAI and MSDS: $10,000 in tuition, $1,000 per course. Degrees on Coursera: the University of Illinois's Master of Computer Science costs $19,840 to $25,376, and CU Boulder's MS in Artificial Intelligence $15,750. The host's plan was a portfolio first, then OMSCS if applications stalled. He had landed his own machine learning job without either, "grandfathered" into it, so he offers this episode as opinion drawn from recruiters and web discussions. Do you need a PhD for machine learning? Not for industry. Machine learning engineer roles rarely call for one; research scientist roles at labs like Google DeepMind and Meta are where a PhD counts (MLG 017). Most people who do a PhD do it for the research. Industry projects are assigned to you and tend toward recommender systems, anomaly detection and data analysis, while a PhD gives you years on the open questions in AI, for the mad scientist who wants to solve them. The trade is pay and hours. Median US computer science PhD stipends run $26,500 to $34,000 for the nine-month academic year, depending on whether you're a teaching assistant, research assistant or fellow (CRA Taulbee Survey, 2025–26), and the weeks can run to 80 hours. US machine learning engineers' median total compensation is about $285,000 (levels.fyi, November 2026). MLA 006 covers salaries. After the master's, his plan was to weigh a PhD about three years on. The choice is yours. Discussions on certificates and degrees Is Udacity's AI Nanodegree Worth It? on Hacker News (2017) Ask HN: Master vs. Udacity nanodegree (2016) Ravin Kumar's My Guide on Data Science Programs (2016) Cole MacLean's Self Taught AI (2014) More in the resources. Next: MLG 007, on logistic regression.

  7. Episode 7

    MLG 007 Logistic Regression

    Logistic regression is a classifier: it passes linear regression through the sigmoid function to get a probability, then calls anything over 0.5 a yes. Also covers the decision boundary, log loss, gradient descent, argmax and softmax for more classes, and logistic regression as a neuron. Links Notes and resources at ocdevel.com/mlg/7 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners What is logistic regression? A supervised learning algorithm for classification. It predicts a class, such as house, tree or dog, where linear regression (MLG 005) predicts a number. Despite its name, it's a classifier: it runs linear regression and passes the result through the logistic function. The example: expensive or not The Portland house spreadsheet from MLG 005: one row per house, with columns for square footage, bedrooms, bathrooms and distance to downtown. Replace each price label (y) with 1 if the house cost over $300,000 and 0 if not, and the problem becomes binary classification. Logistic regression takes the same three steps as linear regression, with different functions: Predict with the hypothesis function, starting from random θ (theta) values. Measure the error with the cost function. Train θ with gradient descent to shrink that error. Step 1: the sigmoid hypothesis function The hypothesis computes linear regression's output, z = θᵀx (theta transpose x), called the logit. The sigmoid, or logistic function, turns it into a probability between 0 and 1: h(x) = 1 / (1 + e^(−θᵀx)) θ is the vector of learned weights and x is a row of features. θᵀx is the vectorized form of θ₀ + θ₁x₁ + θ₂x₂ + ... (the newer Specialization writes it w·x + b). An output of 0.7 means the model is 70% confident the house is expensive. Over 0.5 is a yes, under 0.5 a no. What does the sigmoid curve look like? A stretched-out S. Plotted against z, it approaches 0 as z goes to negative infinity, climbs steeply through 0.5 where it crosses the y-axis at z = 0, and levels off toward 1 as z goes to positive infinity. The decision boundary is where θᵀx = 0 and the output is 0.5. Training moves it to separate the expensive houses from the rest. Step 2: the log loss cost function Linear regression's mean squared error, wrapped around the sigmoid, gives a bumpy cost with many local minima, so gradient descent can get stuck. Logistic regression instead uses log loss, also called the negative log-likelihood or binary cross-entropy. It's convex, with a single minimum, and it charges more the more confident a wrong guess was: Expensive house (y = 1): the cost is −log(h(x)), 0 when the guess is 1 and rising toward infinity as the guess nears 0. Not expensive (y = 0): the cost is −log(1 − h(x)), 0 when the guess is 0 and rising toward infinity as the guess nears 1. Guessing 0.2 for an expensive house costs less than guessing 0. One formula covers both cases, averaged over the m rows: cost = −(1/m) × Σ [ y × log(h(x)) + (1 − y) × log(1 − h(x)) ] For each row one term drops out: y = 1 zeroes the second, y = 0 the first. Step 3: gradient descent Gradient descent takes the derivative of the cost, which says which direction and how far to move each θ, and repeats until the cost reaches its minimum (MLG 005). The update rule has the same form as linear regression's, with the sigmoid as h(x): θⱼ := θⱼ − α × (1/m) × Σ (h(x) − y) × xⱼ α (alpha) is the learning rate and xⱼ is the row's value for feature j. Once trained, a new house goes through h(x), and over 0.5 means expensive. More than two classes: argmax and softmax With several classes, say house, tree, dog and cat, the model computes one logit per class, and argmax picks the class with the highest. A sigmoid on each class gives probabilities like 0.7 house, 0.5 tree and 0.3 dog, which don't sum to 1. When the architecture needs a proper probability distribution, softmax turns the logits into probabilities that do (MLG 027). Classification and action: the lion example On the savanna, recognizing a lion is classification, and deciding to run is a second learned step, choosing an action. In machine learning, a convolutional neural network (MLG 025) can do the seeing and a deep Q-network (MLG 029) the choosing. Both build on units like linear and logistic regression. How is logistic regression a neuron? Machine learning models nest functions inside each other, as in functional programming. For logistic regression, gradient descent wraps the cost function, the cost wraps the sigmoid, and the sigmoid wraps linear regression. Deep learning stacks these units: a neuron with a sigmoid activation is a logistic regression unit (MLG 009). Modern hidden layers mostly use ReLU and its variants, keeping sigmoid or softmax for the output layer. Logistic regression resources Andrew Ng's Machine Learning Specialization on Coursera, which replaced the original course the episode assigns. Its first course, Supervised Machine Learning: Regression and Classification, teaches logistic regression in week 3. MLG 006 weighs courses against certificates and degrees. More in the resources. Next: MLG 008, on the math for machine learning. MLG 010 covers languages and frameworks.

  8. Episode 8

    MLG 008 Math for Machine Learning

    The math for machine learning is linear algebra, statistics and calculus, and you can learn it through machine learning instead of before it. Also covers matrices, vectors and tensors, probability and inference, gradient descent, convex optimization, and where to learn each. Links Notes and resources at ocdevel.com/mlg/8 Join the free MLG group: listen to my other AI shows, ask me questions, and talk with other listeners What math do you need for machine learning? Linear algebra, statistics and calculus, and you don't have to learn them first. Intro courses like Andrew Ng's open with a primer on the math they use. Go deeper afterward, or give math 20% of your learning time, one day a week. In cooking terms, linear algebra is chopping vegetables, statistics is the cookbook and calculus is the oven. Linear algebra: matrices and vectors Linear algebra is math on matrices and vectors, the easiest of the three. The house spreadsheet from MLG 004 is a matrix, capital X: rows are houses and columns are features. The learned weights, theta (θ), are a vector, a list of numbers. A prediction multiplies each feature by its weight and adds the results: h(x) = θ₀ + θ₁x₁ + θ₂x₂ + θ₃x₃ Nested Python for loops are too slow for a million rows. Linear algebra does it in one operation, run on a CPU or GPU with SIMD (single instruction, multiple data). What is a tensor? A tensor is a list of numbers with any number of dimensions: 0D: a number 1D: a vector 2D: a matrix 3D: a cube, like an image, whose pixels each hold red, green and blue values TensorFlow is named for it, and it's the core data type of PyTorch, now the most used framework. MLA 005 covers tensor shapes. Statistics: probability and inference Statistics supplies the algorithms and is the hardest of the three. Hypothesis functions (linear and logistic regression) and error functions (mean squared error, log likelihood) are statistics formulas, like the logistic regression cost function: cost = −(1/m) × Σ [ y × log(h(x)) + (1 − y) × log(1 − h(x)) ] Probability describes how data is distributed, like prices in a housing market. Inference predicts a new example, like one house, from that distribution. Calculus: derivatives and gradient descent Calculus does the training. The derivative of the loss function is the slope of the error graph at the current θ values, telling each θ which way is downhill and how big a step to take. Repeating that step is gradient descent (MLG 005). Derivatives mostly come from memorized rules, like the power rule and chain rule. Convex optimization Optimization is the branch of math that uses calculus to minimize a function. Convex means the error graph is shaped like a cup. It's often listed as a fourth prerequisite, but you learn it with calculus. Math courses, textbooks and primers Khan Academy, free: Linear algebra, Statistics and probability, plus Calculus 1, Calculus 2 and Multivariable calculus. Textbooks: Introduction to Linear Algebra by Gilbert Strang, All of Statistics by Larry Wasserman and Calculus: Early Transcendentals by James Stewart. Primers: Stanford's CS229 linear algebra and probability primers (26 and 12 pages). The full math track is in the resources. The Great Courses: Mathematical Decision Making Mathematical Decision Making: Predictive Models and Optimization is a 24-lecture video course by Scott P. Stevens on operations research: the math of scheduling employees, train departures and factory settings, very close to machine learning's. The Great Courses also has calculus, statistics and linear algebra courses, in the resources. They're a supplement: the lecturers narrate what they draw, so the videos work as audio. Convert video files to mp3 has the bash script. Next: MLG 009, on deep learning.

About

A free machine learning and AI podcast, built as an audio course for beginners and aspiring ML engineers. It teaches the fundamentals of machine learning and artificial intelligence from the ground up: intuition, the math, languages and frameworks, and models from shallow learning to deep learning, including neural networks, transformers and large language models (LLMs). Newer episodes cover AI agents, vibe coding with coding agents such as Claude Code, AI image and video generation, and what AI has done to programming jobs. Where your other ML resources provide the trees, MLG provides the forest. Treat it as your syllabus, with curated books and courses to learn each topic in depth at ocdevel.com/mlg, and listen during exercise, commutes and chores. Some episodes are written by AI and narrated by an AI clone of host Tyler Renelle's voice, and each one says so at its start and in its notes.

You Might Also Like