AI Beyond Language Models

Search, game playing, learning from rewards, image generation, recommendations, forecasting and sound, each in a few lines of plain Python you can step through.

AI · beginner · 7 lessons · 58 min · free

What you'll learn

Before you start

Lessons

Search and Games

Classic AI: finding routes and choosing moves.

  1. A* Search: Finding the Shortest Path: Maps, games and robots all need to find routes. A* always explores the most promising place next: the distance so far plus a guess of the distance left.
  2. Minimax: Thinking One Move Ahead: Game-playing AI assumes the opponent plays well. For each move, find the worst reply you could face, then pick the move whose worst case is best.

Learning from Rewards

Reinforcement learning: no answers, only rewards.

  1. Q-Learning: Learning from Rewards: Nobody tells the robot the right moves. It only gets a reward at the goal, and over a few tries the value of that reward flows backwards along the corridor.

Generating Images

How image generators create pictures from noise.

  1. Diffusion: Making Images from Noise: Image generators learn one skill: spotting the noise in a noisy picture. Mix noise into a tiny 4-pixel image, then remove it step by step.

Everyday AI

Recommendations, forecasts and sound.

  1. Recommenders: People Like You Liked This: Streaming and shopping sites suggest things by finding people whose tastes match yours. Compare ratings, find the closest viewer, and recommend what they loved.
  2. Time Series: Forecasting Tomorrow: Sales, temperatures and traffic change over time. A moving average smooths out the wiggles, and adding the trend gives a forecast for tomorrow.
  3. Sound as Numbers: Where Speech AI Starts: A microphone measures air pressure many times a second. Sample a simple wave, and find its pitch by counting how often it rises through zero.

Related courses