第8章現代の畳み込みニューラルネットワーク
8.5. Batch Normalization8.5 バッチ正規化
Training deep neural networks is difficult. Getting them to converge in a reasonable amount of time can be tricky. In this section, we describe batch normalization, a popular and effective technique that consistently accelerates the convergence of deep networks (Ioffe and Szegedy, 2015). Together with residual blocks—covered later in Section 8.6—batch normalization has made it possible for practitioners to routinely train networks with over 100 layers. A secondary (serendipitous) benefit of batch normalization lies in its inherent regularization.
英語のヒント
深いニューラルネットワークを訓練するのは難しい。ほどよい時間で収束させるのは厄介なことがある。この節では、深いネットワークの収束を一貫して速める、人気があり効果的な手法であるバッチ正規化(Ioffe and Szegedy, 2015)を説明する。後の8.6節で扱う残差ブロックとともに、バッチ正規化によって、実践者は100層を超えるネットワークを日常的に訓練できるようになった。バッチ正規化の副次的な(思いがけない)利点は、それ自体がもつ正則化にある。
import torch
from torch import nn
from d2l import torch as d2l