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:
