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)

Multilayer Perceptrons

Unfortunately, we cannot use a perceptron to represent an XOR gate. However, this is not terrible news. Actually, the merit of a perceptron lies in the fact that multiple layers of perceptrons can be stacked (the outline of this section is that multiple layers can represent XOR). We will look at the stacking layers later. Here, we can consider the problem of the XOR gate from another viewpoint.

Combining the Existing Gates

There are some methods we can follow to make an XOR gate. One of them is to combine the AND, NAND, and OR gates that we have created so far and wire them. Here, the AND, NAND, and OR gates are shown with symbols in Figure 2.9. The circle at the tip of the NAND gate in Figure 2.9 indicates that an output has been reversed.

Figure 2.9: Symbols of the AND, NAND, and OR gates

Now, let's think about how we can wire AND, NAND, and OR to create an XOR gate. Note that you can assign AND, NAND, or OR to each of the...