プリンキピア

第3章回帰のための線形ニューラルネットワーク

3.2.5. Summary3.2.5 まとめ

To highlight the object-oriented design for our future deep learning implementation, the above classes simply show how their objects store data and interact with each other. We will keep enriching implementations of these classes, such as via @add_to_class, in the rest of the book. Moreover, these fully implemented classes are saved in the D2L library, a lightweight toolkit that makes structured modeling for deep learning easy. In particular, it facilitates reusing many components between projects without changing much at all. For instance, we can replace just the optimizer, just the model, just the dataset, etc.; this degree of modularity pays dividends throughout the book in terms of conciseness and simplicity (this is why we added it) and it can do the same for your own projects.
英語のヒント
今後の深層学習の実装のためのオブジェクト指向設計を際立たせるために、上のクラスは、そのオブジェクトがどうデータを保存し、互いにどうやり取りするかを示しているだけである。本の残りでは、たとえば@add_to_classを使って、これらのクラスの実装を充実させ続ける。さらに、これらの完全に実装されたクラスは、深層学習の構造化されたモデリングを簡単にする軽量のツールキットであるD2Lライブラリに保存されている。特に、プロジェクトのあいだで多くの構成要素を、ほとんど何も変えずに再利用しやすくする。たとえば、最適化手法だけ、モデルだけ、データセットだけ、などを取り替えられる。このモジュール性の高さは、簡潔さと単純さの点で本全体を通じて元が取れる(だからこれを加えた)し、あなた自身のプロジェクトでも同じ効果がありうる。