video

The Coding Train: Neural Networks

by Daniel Shiffman

Creative coding and machine learning taught with boundless enthusiasm.

Why it’s worth your time

Daniel Shiffman's playlist builds a neural network library from scratch in JavaScript, as the neural-network chapter of his course The Nature of Code. Starting in 2017 with a single perceptron, it works through the matrix math, the feedforward algorithm and backpropagation, then puts the library to work on the XOR problem, a color predictor and a doodle classifier. His main reference is Tariq Rashid's book Make Your Own Neural Network.

Shiffman codes live, mistakes and all, with irrepressible enthusiasm, which makes it ideal for programmers who learn by building and less so for anyone in a hurry: it runs to 27 videos and many hours. It predates today's deep-learning libraries taking over, which is the point — you see every piece. Pair it with 3Blue1Brown's animated explanation of the math.

Where to start

  1. 10.1: Introduction to Neural Networks - The Nature of Code

    The seven-minute overview of where the series is going.

  2. 10.2: Neural Networks: Perceptron Part 1 - The Nature of Code

    The simplest neural network, coded from nothing.

  3. 10.14: Neural Networks: Backpropagation Part 1 - The Nature of Code

    The start of the hardest and most important part: how a network learns.

  4. Coding Challenge #92: XOR Problem

    The finished library solving the classic problem a single perceptron can't.

  5. 3Blue1Brown: But What Is a Neural Network?

    The same ideas animated, with the math made visual.

About Daniel Shiffman

Daniel Shiffman is a programmer and teacher, an associate arts professor at NYU's Interactive Telecommunications Program and a board member of the Processing Foundation. He runs The Coding Train, a YouTube channel of creative-coding tutorials in Processing and p5.js, and wrote The Nature of Code.

Everything by Daniel Shiffman

About this channel

All aboard! The Coding Train is on its way with creative coding video tutorials on subjects ranging from the basics of programming languages like JavaScript to algorithmic art, machine learning, simulation, generative poetry, and more. Choo choo!

USJoined July 20061,288 videos

Related

Related dispatches

All dispatches