O'Reilly logo

Test-Driven Machine Learning by Justin Bozonier

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Perceptively Testing a Perceptron

Even for people comfortable with using them, neural networks can seem like a big black box. On top of that, the little bit of randomness within them just makes their inner workings that much more mysterious.

In this chapter, we're going to start exploring TDD-ing machine learning algorithms by building a very simple neural network using TDD. Then we will use this as an opportunity to more deeply understand how they work.

In this chapter, we will cover the following topics:

  • Building the simplest perceptron possible
  • Using a spreadsheet to develop simple use cases we can test to and reproduce
  • Using TDD to develop our first machine-learning algorithm
  • Testing with datasets

You will need some sort of spreadsheet ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required