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)

Simple Logic Circuits

AND Gate

The following are some easy problems that use a perceptron. We will look at logic circuits here. Let's think about an AND gate first. An AND gate consists of two inputs and one output. The table of input and output signals in Figure 2.2 is called a "truth table." As shown in Figure 2.2, the AND gate outputs 1 when two inputs are 1. Otherwise, it outputs 0:

Figure 2.2: Truth table of an AND gate

Now, we will use a perceptron to express this AND gate. We will determine the values of w1, w2, and θ so that they satisfy the truth table of Figure 2.2. What values can we set to create a perceptron that satisfies the conditions of Figure 2.2?

Actually, there is an infinite number of combinations of the parameters that satisfy Figure 2.2. For example, when (w1, w2, θ) = (0.5, 0.5, 0.7), the perceptron works as shown in Figure 2.2. (0.5, 0.5, 0.8) and (1.0, 1.0, 1.0) also satisfy the conditions of the AND...