第4章分類のための線形ニューラルネットワーク
4.2.4. Summary4.2.4 まとめ
We now have a slightly more realistic dataset to use for classification. Fashion-MNIST is an apparel classification dataset consisting of images representing 10 categories. We will use this dataset in subsequent sections and chapters to evaluate various network designs, from a simple linear model to advanced residual networks. As we commonly do with images, we read them as a tensor of shape (batch size, number of channels, height, width). For now, we only have one channel as the images are grayscale (the visualization above uses a false color palette for improved visibility).
英語のヒント
これで、分類に使える、少しだけ現実に近いデータセットが手に入った。Fashion-MNISTは、10のカテゴリーを表す画像からなる衣料品の分類用データセットである。以降の節と章では、このデータセットを使って、単純な線形モデルから高度な残差ネットワークまで、さまざまなネットワークの設計を評価する。画像についていつもするように、画像は形状が(バッチサイズ、チャネル数、高さ、幅)のテンソルとして読み込む。今のところ、画像はグレースケールなのでチャネルは一つしかない(上の可視化では、見やすくするために疑似カラーのパレットを使っている)。
Lastly, data iterators are a key component for efficient performance. For instance, we might use GPUs for efficient image decompression, video transcoding, or other preprocessing. Whenever possible, you should rely on well-implemented data iterators that exploit high-performance computing to avoid slowing down your training loop.
英語のヒント
最後に、データのイテレータは効率的な性能の鍵となる部品である。たとえば、画像の効率的な展開、動画の変換、そのほかの前処理にGPUを使うこともある。可能なかぎり、高性能計算を活用するよくできたデータのイテレータに頼って、訓練ループを遅くしないようにすべきである。