Book Image

Deep Learning from the Basics

By : Koki Saitoh
5 (1)
Book Image

Deep Learning from the Basics

5 (1)
By: Koki Saitoh

Overview of this book

Deep learning is rapidly becoming the most preferred way of solving data problems. This is thanks, in part, to its huge variety of mathematical algorithms and their ability to find patterns that are otherwise invisible to us. Deep Learning from the Basics begins with a fast-paced introduction to deep learning with Python, its definition, characteristics, and applications. You’ll learn how to use the Python interpreter and the script files in your applications, and utilize NumPy and Matplotlib in your deep learning models. As you progress through the book, you’ll discover backpropagation—an efficient way to calculate the gradients of weight parameters—and study multilayer perceptrons and their limitations, before, finally, implementing a three-layer neural network and calculating multidimensional arrays. By the end of the book, you’ll have the knowledge to apply the relevant technologies in deep learning.
Table of Contents (11 chapters)

Implementing a Three-Layer Neural Network

Now, let's implement a "practical" neural network. Here, we will implement the process from its input to its output (a process in the forward direction) in the three-layer neural network shown in Figure 3.15. We will use NumPy's multidimensional arrays (as described in the previous section) for implementation. By making good use of NumPy arrays, you can write some short code for a forward process in the neural network.

Examining the Symbols

Here, we will use symbols such as 5c and 5d to explain the processes performed in the neural network. They may seem a little complicated. You can skim through this section because the symbols are only used here:

Figure 3.15: A three-layer neural network consisting of two neurons in the input layer (layer 0), three neurons in the first hidden layer (layer 1), two neurons in the second hidden layer (layer 2), and two neurons in the output layer (layer 3)

Note

...