第3章回帰のための線形ニューラルネットワーク
3. Linear Neural Networks for Regression3 回帰のための線形ニューラルネットワーク
Before we worry about making our neural networks deep, it will be helpful to implement some shallow ones, for which the inputs connect directly to the outputs. This will prove important for a few reasons. First, rather than getting distracted by complicated architectures, we can focus on the basics of neural network training, including parametrizing the output layer, handling data, specifying a loss function, and training the model. Second, this class of shallow networks happens to comprise the set of linear models, which subsumes many classical methods of statistical prediction, including linear and softmax regression. Understanding these classical tools is pivotal because they are widely used in many contexts and we will often need to use them as baselines when justifying the use of fancier architectures. This chapter will focus narrowly on linear regression and the next one will extend our modeling repertoire by developing linear neural networks for classification.
英語のヒント
ニューラルネットワークを深くすることを気にかける前に、入力が出力に直接つながった浅いネットワークを実装しておくと役に立つ。これはいくつかの理由で重要になる。第一に、複雑なアーキテクチャに気を取られずに、出力層のパラメータ化、データの扱い、損失関数の指定、モデルの訓練といった、ニューラルネットワークの訓練の基本に集中できる。第二に、この種の浅いネットワークは、たまたま線形モデルの集まりをなしており、線形回帰やソフトマックス回帰を含む統計的予測の多くの古典的手法を包含する。これらの古典的な道具を理解することは決定的に重要である。多くの場面で広く使われており、もっと凝ったアーキテクチャを使うことを正当化する際の基準として使う必要がよくあるからである。この章は線形回帰に絞って焦点を当て、次の章では分類のための線形ニューラルネットワークを作ってモデル化の手札を広げる。