第4章分類のための線形ニューラルネットワーク
4.5.4. Summary4.5.4 まとめ
High-level APIs are very convenient at hiding from their user potentially dangerous aspects, such as numerical stability. Moreover, they allow users to design models concisely with very few lines of code. This is both a blessing and a curse. The obvious benefit is that it makes things highly accessible, even to engineers who never took a single class of statistics in their life (in fact, they are part of the target audience of the book). But hiding the sharp edges also comes with a price: a disincentive to add new and different components on your own, since there is little muscle memory for doing it. Moreover, it makes it more difficult to fix things whenever the protective padding of a framework fails to cover all the corner cases entirely. Again, this is due to lack of familiarity.
英語のヒント
高水準のAPIは、数値の安定性のような、潜在的に危険な面を利用者から隠すのにとても便利である。さらに、ほんの数行のコードでモデルを簡潔に設計できるようにしてくれる。これは恵みでもあり呪いでもある。明らかな利点は、物事をとても近づきやすくしてくれることである。人生で統計学の授業を一度も受けたことのない技術者にとってさえそうである(実際、そうした技術者もこの本の想定読者の一部である)。しかし、鋭い角を隠すことには代償も伴う。自分で新しい、違う部品を加えようという意欲がそがれるのである。それをするための体で覚えた感覚がほとんどないからである。さらに、フレームワークの保護用の詰め物がコーナーケースをすべて覆いきれないときには、そのつど問題を直すのが難しくなる。これもやはり、慣れていないせいである。
As such, we strongly urge you to review both the bare bones and the elegant versions of many of the implementations that follow. While we emphasize ease of understanding, the implementations are nonetheless usually quite performant (convolutions are the big exception here). It is our intention to allow you to build on these when you invent something new that no framework can give you.
英語のヒント
そのため、以降の多くの実装について、骨組みだけの版と洗練された版の両方を見直すことを強く勧める。理解しやすさを重視してはいるが、それでも実装はたいていかなり高性能である(畳み込みは大きな例外である)。どのフレームワークも与えてくれない新しいものを発明するときに、これらを土台にして組み立てられるようにすることを意図している。