第1章はじめに
1. Introduction1 はじめに
Until recently, nearly every computer program that you might have interacted with during an ordinary day was coded up as a rigid set of rules specifying precisely how it should behave. Say that we wanted to write an application to manage an e-commerce platform. After huddling around a whiteboard for a few hours to ponder the problem, we might settle on the broad strokes of a working solution, for example: (i) users interact with the application through an interface running in a web browser or mobile application; (ii) our application interacts with a commercial-grade database engine to keep track of each user’s state and maintain records of historical transactions; and (iii) at the heart of our application, the business logic (you might say, the brains) of our application spells out a set of rules that map every conceivable circumstance to the corresponding action that our program should take.
英語のヒント
つい最近まで、ふだんの一日のなかであなたが触れたかもしれないコンピュータプログラムは、ほぼどれも、どう振る舞うべきかを正確に定めた厳格な規則の集まりとして書かれていた。たとえば、電子商取引のプラットフォームを管理するアプリケーションを書きたいとしよう。数時間ホワイトボードを囲んで問題を考えた末に、動く解決策のおおまかな筋に落ち着くかもしれない。たとえばこうである。(i)利用者は、Webブラウザやモバイルアプリケーションで動くインターフェースを通じてアプリケーションとやり取りする。(ii)アプリケーションは、商用水準のデータベースエンジンとやり取りして、各利用者の状態を追跡し、過去の取引の記録を保持する。(iii)そしてアプリケーションの中心では、そのビジネスロジック(頭脳と言ってもよい)が規則の集まりを書き出し、考えうるあらゆる状況を、プログラムがとるべき対応する動作に結びつける。
To build the brains of our application, we might enumerate all the common events that our program should handle. For example, whenever a customer clicks to add an item to their shopping cart, our program should add an entry to the shopping cart database table, associating that user’s ID with the requested product’s ID. We might then attempt to step through every possible corner case, testing the appropriateness of our rules and making any necessary modifications. What happens if a user initiates a purchase with an empty cart? While few developers ever get it completely right the first time (it might take some test runs to work out the kinks), for the most part we can write such programs and confidently launch them before ever seeing a real customer. Our ability to manually design automated systems that drive functioning products and systems, often in novel situations, is a remarkable cognitive feat. And when you are able to devise solutions that work of the time, you typically should not be worrying about machine learning.
英語のヒント
アプリケーションの頭脳を作るには、プログラムが扱うべきよくある出来事をすべて列挙すればよいかもしれない。たとえば、客がクリックして商品をショッピングカートに入れるたびに、プログラムはショッピングカートのデータベースの表に項目を一つ追加し、その利用者のIDを、求められた商品のIDに結びつけるべきである。次に、考えうるあらゆる例外的な場合を一つずつたどり、規則が適切かを試し、必要な修正を加えようとするかもしれない。利用者が空のカートで購入を始めたらどうなるか。最初から完全に正しくできる開発者はめったにいないが(不具合をつぶすには何度かテストを走らせる必要があるかもしれない)、たいていは、こうしたプログラムを書き、実際の客を一人も見ないうちから自信をもって公開できる。機能する製品やシステムを、しばしば新しい状況のなかで動かす自動化されたシステムを、人の手で設計できるという私たちの能力は、驚くべき認知的な偉業である。そして、うまくいく解決策を考え出せるなら、普通は機械学習のことなど気にする必要はない。
Fortunately for the growing community of machine learning scientists, many tasks that we would like to automate do not bend so easily to human ingenuity. Imagine huddling around the whiteboard with the smartest minds you know, but this time you are tackling one of the following problems:
英語のヒント
機械学習の科学者という成長を続ける集団にとって幸いなことに、私たちが自動化したい課題の多くは、人間の創意工夫にそうたやすくは屈しない。あなたが知るなかで最も聡明な人たちとホワイトボードを囲んでいるところを想像してほしい。ただし今回取り組むのは、次の問題のどれかである。
- Write a program that predicts tomorrow’s weather given geographic information, satellite images, and a trailing window of past weather.
英語のヒント
地理情報、衛星画像、直近の一定期間の過去の天気が与えられたとき、明日の天気を予測するプログラムを書け。 - Write a program that takes in a factoid question, expressed in free-form text, and answers it correctly.
英語のヒント
自由な形式の文章で表された事実についての質問を受け取り、それに正しく答えるプログラムを書け。 - Write a program that, given an image, identifies every person depicted in it and draws outlines around each.
英語のヒント
画像が与えられたとき、そこに写っているすべての人を特定し、それぞれの周りに輪郭線を描くプログラムを書け。 - Write a program that presents users with products that they are likely to enjoy but unlikely, in the natural course of browsing, to encounter.
英語のヒント
利用者が楽しめそうだが、ふつうに閲覧していてはまず出会いそうにない商品を、利用者に提示するプログラムを書け。
For these problems, even elite programmers would struggle to code up solutions from scratch. The reasons can vary. Sometimes the program that we are looking for follows a pattern that changes over time, so there is no fixed right answer! In such cases, any successful solution must adapt gracefully to a changing world. At other times, the relationship (say between pixels, and abstract categories) may be too complicated, requiring thousands or millions of computations and following unknown principles. In the case of image recognition, the precise steps required to perform the task lie beyond our conscious understanding, even though our subconscious cognitive processes execute the task effortlessly.
英語のヒント
こうした問題では、一流のプログラマーでさえ、ゼロから解決策を書くのに苦労するだろう。理由はさまざまである。探しているプログラムが時とともに変わるパターンに従っていて、決まった正解がないこともある。そういう場合、うまくいく解決策は、変わり続ける世界にしなやかに適応しなければならない。また、関係(たとえば画素と抽象的なカテゴリーのあいだの関係)が複雑すぎて、何千回、何百万回もの計算を必要とし、未知の原理に従っていることもある。画像認識の場合、その課題をこなすのに必要な正確な手順は、私たちの意識的な理解の及ばないところにある。私たちの無意識の認知過程は、その課題を苦もなくこなしているにもかかわらずである。
Machine learning is the study of algorithms that can learn from experience. As a machine learning algorithm accumulates more experience, typically in the form of observational data or interactions with an environment, its performance improves. Contrast this with our deterministic e-commerce platform, which follows the same business logic, no matter how much experience accrues, until the developers themselves learn and decide that it is time to update the software. In this book, we will teach you the fundamentals of machine learning, focusing in particular on deep learning, a powerful set of techniques driving innovations in areas as diverse as computer vision, natural language processing, healthcare, and genomics.
英語のヒント
機械学習とは、経験から学ぶことのできるアルゴリズムの研究である。機械学習のアルゴリズムが、普通は観測データや環境とのやり取りという形で経験を積むにつれて、その性能は向上する。これを、先ほどの決定論的な電子商取引のプラットフォームと比べてほしい。そちらは、どれほど経験が積み重なっても、開発者自身が学び、ソフトウェアを更新する時期だと判断するまでは、同じビジネスロジックに従い続ける。この本では、機械学習の基礎を教える。とりわけ深層学習に焦点を当てる。深層学習は、コンピュータビジョン、自然言語処理、医療、ゲノミクスといった多様な分野で革新を推し進めている強力な技術の集まりである。