In this video, I continue my machine learning series and build a simple Perceptron in Processing (Java).

Perceptron Part 2:

This video is part of Chapter 10 of The Nature of Code (

This video is also part of session 4 of my Spring 2017 ITP “Intelligence and Learning” course (

Simple Perceptron code examples:

Support this channel on Patreon:
To buy Coding Train merchandise:
To donate to the Processing Foundation:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Session 4 of Intelligence and Learning:
Perceptron on Wikipedia:
Frank Rosenblatt’s paper on the Perceptron:
My Gradient Descent video:

Source Code for the all Video Lessons:


For More Coding Challenges:
For More Intelligence and Learning:

Help us caption & translate this video!