In the previous recipe, Building a perceptron, we learned how to create a perceptron; now let's create a single layer neural network. A single layer neural network consists of multiple neurons in a single layer. Overall, we will have an input layer, a hidden layer, and an output layer, as shown in the following diagram:
![](https://static.packt-cdn.com/products/9781789808452/graphics/assets/290136cc-48f2-47b1-bb95-ffdb625b987d.png)