プリンキピア

第5章多層パーセプトロン

5.1. Multilayer Perceptrons5.1 多層パーセプトロン

In Section 4.1, we introduced softmax regression, implementing the algorithm from scratch (Section 4.4) and using high-level APIs (Section 4.5). This allowed us to train classifiers capable of recognizing 10 categories of clothing from low-resolution images. Along the way, we learned how to wrangle data, coerce our outputs into a valid probability distribution, apply an appropriate loss function, and minimize it with respect to our model’s parameters. Now that we have mastered these mechanics in the context of simple linear models, we can launch our exploration of deep neural networks, the comparatively rich class of models with which this book is primarily concerned.
英語のヒント
4.1節ではソフトマックス回帰を紹介し、アルゴリズムをゼロから実装し(4.4節)、高水準のAPIを使っても実装した(4.5節)。これにより、低解像度の画像から衣類の10カテゴリーを認識できる分類器を訓練できた。その途中で、データを扱い、出力を正当な確率分布に押し込み、適切な損失関数を当てはめ、それをモデルのパラメータについて最小にする方法を学んだ。単純な線形モデルの文脈でこうした仕組みを身につけたので、深いニューラルネットワークの探究に乗り出せる。これは、この本が主に扱う、比較的豊かなモデルのクラスである。
%matplotlib inline
import torch
from d2l import torch as d2l