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

    AI is rapidly transforming both creative and knowledge-based professions, prompting debates on economic disruption, the future of work, the singularity, consciousness, and the potential risks associated with powerful autonomous systems. Philosophical discussions now focus on the socioeconomic impact of automation, the possibility of a technological singularity, the nature of machine consciousness, and the ethical considerations surrounding advanced artificial intelligence. Links Notes and resources at ocdevel.com/mlg/3 Try a walking desk stay healthy & sharp while you learn & code Automation of the Economy Artificial intelligence is increasingly capable of simulating intellectual tasks, leading to the replacement of not only repetitive and menial jobs but also high-skilled professions such as medical diagnostics, surgery, web design, and art creation. Automation is affecting various industries including healthcare, transportation, and creative fields, where AI-powered tools are assisting or even outperforming humans in tasks like radiological analysis, autonomous vehicle operation, website design, and generating music or art. Economic responses to these trends are varied, with some expressing fear about job loss and others optimistic about new opportunities and improved quality of life as history has shown adaptation following previous technological revolutions such as the agricultural, industrial, and information revolutions. The concept of universal basic income (UBI) is being discussed as a potential solution to support populations affected by automation, as explored in several countries. Public tools are available, such as the BBC's "Is your job safe?", which estimates the risk of job automation for various professions. The Singularity The singularity refers to a hypothesized point where technological progress, particularly in artificial intelligence, accelerates uncontrollably, resulting in rapid and irreversible changes to society. The concept, popularized by thinkers like Ray Kurzweil, is based on the idea that after each major technological revolution, intervals between revolutions shorten, potentially culminating in an "intelligence explosion" as artificial general intelligence develops the ability to improve itself. The possibility of seed AI, where machines iteratively create more capable versions of themselves, underpins concerns and excitement about a potential breakaway point in technological capability. Consciousness and Artificial Intelligence The question of whether machines can be conscious centers on whether artificial minds can experience subjective phenomena (qualia) analogous to human experience or whether intelligence and consciousness can be separated. Traditional dualist perspectives, such as those of René Descartes, have largely been replaced by monist and functionalist philosophies, which argue that mind arises from physical processes and thus may be replicable in machines. The Turing Test is highlighted as a practical means to assess machine intelligence indistinguishable from human behavior, raising ongoing debates in cognitive science and philosophy about the possibility and meaning of machine consciousness. Risks and Ethical Considerations Concerns about the ethical risks of advanced artificial intelligence include scenarios like Nick Bostrom's "paperclip maximizer," which illustrates the dangers of goal misalignment between AI objectives and human well-being. Public figures have warned that poorly specified or uncontrolled AI systems could pursue goals in ways that are harmful or catastrophic, leading to debates about how to align advanced systems with human values and interests. Further Reading and Resources Books such as "The Singularity Is Near" by Ray Kurzweil, "How to Create a Mind" by Ray Kurzweil, "Consciousness Explained" by Daniel Dennett, and "Superintelligence" by Nick Bostrom offer deeper exploration into these topics. Video lecture series like "Philosophy of Mind: Brain, Consciousness, and Thinking Machines" by The Great Courses provide overviews of consciousness studies and the intersection with artificial intelligence.

  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 (MLG 010 covers languages and frameworks). 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

    People interested in machine learning can choose between self-guided learning, online certification programs such as MOOCs, accredited university degrees, and doctoral research, with industry acceptance and personal goals influencing which path is most appropriate. Industry employers currently prioritize a strong project portfolio over non-accredited certificates, and while master's degrees carry more weight for job applications, PhD programs are primarily suited for research interests rather than industry roles. Links Notes and resources at ocdevel.com/mlg/6 Try a walking desk - stay healthy & sharp while you learn & code Learner Types and Self-Guided Education Individuals interested in machine learning may be hobbyists, aspiring professionals, or scientists wishing to contribute to research in artificial intelligence. Hobbyists can rely on structured resources, including curated syllabi and recommended online materials, to guide their self-motivated studies. The "Andrew Ng Coursera" course is frequently recommended as an initial step for self-learners, and advanced resources such as "Artificial Intelligence: A Modern Approach" and "Deep Learning" textbooks are valuable later. MOOCs and Online Certificates MOOCs (Massive Open Online Courses) are widely available from platforms such as Coursera, Udacity, edX, and Khan Academy, but only Coursera and Udacity are commonly recognized for machine learning and data science content. Coursera is typically recommended for individual courses; its specializations are less prominent in professional discussions. Udacity offers both free courses and paid "nano degrees" which include structured mentoring, peer interaction, and project-based learning. Although Udacity certificates demonstrate completion and the development of practical projects, they lack widespread recognition or acceptance from employers. Hiring managers and recruiters consistently emphasize the value of a substantial project portfolio over non-accredited certificates for job-seekers. University Degrees and Industry Recognition Master's degrees in machine learning or computer science remain the most respected credentials for job applications in the industry, with requirements often officially listed in job postings. The Georgia Tech OMSCS program provides an accredited, fully online Master's degree in Computer Science at a much lower cost than traditional programs, reportedly leveraging Udacity's course infrastructure. In some cases, a strong portfolio can substitute for formal educational requirements, particularly if the applicant demonstrates practical and scalable machine learning project experience. Portfolio strength is considered analogous to web development hiring, where demonstrated skills and personal projects can compensate for missing degree credentials. PhD Pathways and Research Careers A PhD is generally unnecessary for industry positions in machine learning; a master's degree or an exceptional portfolio is usually adequate. Doctoral degrees are most useful for those seeking research roles or wishing to investigate complex theoretical questions in artificial intelligence, rather than working in standard industry applications. PhD programs pay a stipend to students, though the compensation is much less than typical industry salaries, which should factor into an individual's decision-making process. Considerations and Resources Choosing an educational path depends on individual goals, available resources, and desired career trajectory; a portfolio of significant machine learning projects is universally beneficial regardless of the chosen route. Community discussions and recruiter perspectives suggest that practical skills, proven through real-world projects, are highly valued in addition to or in place of formal degrees. Interested individuals can review ongoing discussions and perspectives: Self-Guided Data Science Guide (canyon289) Hacker News – Are credentials required? Cole MacLean's Self-Taught AI Blog Hacker News: Self-Study Paths

  7. Episode 7

    MLG 007 Logistic Regression

    The logistic regression algorithm is used for classification tasks in supervised machine learning, distinguishing items by class (such as "expensive" or "not expensive") rather than predicting continuous numerical values. Logistic regression applies a sigmoid or logistic function to a linear regression model to generate probabilities, which are then used to assign class labels through a process involving hypothesis prediction, error evaluation with a log likelihood function, and parameter optimization using gradient descent. Links Notes and resources at ocdevel.com/mlg/7 Try a walking desk - stay healthy & sharp while you learn & code Classification versus Regression in Supervised Learning Supervised learning consists of two main tasks: regression and classification. Regression algorithms predict continuous values, while classification algorithms assign classes or categories to data points. The Role and Nature of Logistic Regression Logistic regression is a classification algorithm, despite its historically confusing name. The algorithm determines the probability that an input belongs to a specific class, using outputs between zero and one. How Logistic Regression Works The process starts by passing inputs through a linear regression function, then applying a logistic (sigmoid) function to produce a probability. For binary classification, results above 0.5 usually indicate a positive class (for example, "expensive"), and results below 0.5 indicate a negative class ("not expensive"). Multiclass problems assign probabilities to each class, selecting the class with the highest probability using the arg max function. Example Application: Housing Spreadsheet An example uses a spreadsheet of houses with features like square footage and number of bedrooms, labeling each as "expensive" (1) or "not expensive" (0). Logistic regression uses the spreadsheet data to learn the pattern that separates expensive houses from less expensive ones. Steps in Logistic Regression The algorithm follows three steps: predict (infer a class), evaluate error (calculate how inaccurate the guesses were), and train (refine the underlying parameters). Predictions are compared to actual data, and the difference (error) is calculated via a log likelihood function, which accounts for how confident the prediction was compared to the true value. Model parameters (theta values) are updated using gradient descent, which iteratively reduces the error by adjusting these values based on the derivative of the error function. The Mathematical Foundation The hypothesis function is the sigmoid or logistic function, with the formula: 1 / (1 + e^(-theta^T x)), where theta represents the parameters and x the input features. The error function (cost function) for logistic regression uses log likelihood, aggregating errors over all data points to guide model learning. Practical Considerations Logistic regression finds a "decision boundary" on the graph (S-curve) that best separates classes such as "expensive" versus "not expensive." When the architecture requires a proper probability distribution (sum of probabilities equals one), a softmax function is applied to the outputs, but softmax is not covered in this episode. Composability in Machine Learning Machine learning architectures are highly compositional, with functions nested within other functions - logistic regression itself is a function of linear regression. This composability underpins more complex systems like neural networks, where each "neuron" can be seen as a logistic regression unit powered by linear regression. Building Toward Advanced Topics Understanding logistic and linear regression forms the foundation for approaching advanced areas of machine learning such as deep learning and neural networks. The concepts of prediction, error measurement, and iterative training recur in more sophisticated models. Resource Recommendations The episode recommends the Andrew Ng Coursera course for deeper study into these concepts and details, especially for further exploration of multivariate regression and error functions.

  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 (MLG 010). 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 from Stanford's CS229: Linear Algebra Review and Reference (26 pages) and Review of Probability Theory (12 pages). 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