ТОП просматриваемых книг сайта:
Computational Statistics in Data Science. Группа авторов
Читать онлайн.Название Computational Statistics in Data Science
Год выпуска 0
isbn 9781119561088
Автор произведения Группа авторов
Жанр Математика
Издательство John Wiley & Sons Limited
Figure 2 Convolution operation with stride size
.4.2 Convolutional Layer
The convolution operation is illustrated in Figure 2. The weight matrix of the convolutional layer is usually called the kernel matrix. The kernel matrix (
Another commonly used structure in a CNN is the pooling layer, which is good at extracting dominant features from the input. Two main types of pooling operation are illustrated in Figure 3. Similar to a convolution operation, the kernel shifts over the input matrix with a specified stride size. If Max Pooling is applied to the input, the maximum of the covered portion will be taken as the result. If Average Pooling is applied, the mean of the covered portion will be calculated and taken as the result. The example in Figure 3 shows the result of pooling with kernel size that equals
4.3 LeNet‐5
LeNet‐5 is a CNN introduced by LeCun et al. [8]. This is one of the earliest structures of CNNs and was initially introduced to do handwritten digit recognition on the MNIST dataset [9]. The structure is straightforward and simple to understand, and details are shown in Figure 4.
The LeNet‐5 architecture consists of seven layers, where three are convolutional layers, two are pooling layers, and two are fully connected layers. LeNet‐5 takes images of size
Figure 3 Pooling operation with stride size
.LeNet‐5 of LeCun et al. [8].
Source: Modified from LeCun et al. [8].
The first layer (C1) is a convolutional layer, which consists of six kernel matrices of size
Table 1 Connection between input and output matrices in the third layer of LeNet‐5 [8].
Source: LeCun et al. [8].
Indices of output matrices | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
1 | 1 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 15 | 16 |
2 | 1 | 2 | 6 | 7 | 8 | 11 | 12 | 13 | 14 | 16 |
3 | 1 | 2 | 3 | 7 | 8 | 9 | 12 | 14 | 15 | 16 |
4 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 13 | 15 | 16 |
5 | 3 |
4
|