プリンキピア

第4章分類のための線形ニューラルネットワーク

4.1. Softmax Regression4.1 ソフトマックス回帰

In Section 3.1, we introduced linear regression, working through implementations from scratch in Section 3.4 and again using high-level APIs of a deep learning framework in Section 3.5 to do the heavy lifting.
英語のヒント
3.1節では線形回帰を紹介し、3.4節ではゼロからの実装を、そして3.5節では再び深層学習フレームワークの高水準APIを使って力仕事を任せる実装を行った。
Regression is the hammer we reach for when we want to answer how much? or how many? questions. If you want to predict the number of dollars (price) at which a house will be sold, or the number of wins a baseball team might have, or the number of days that a patient will remain hospitalized before being discharged, then you are probably looking for a regression model. However, even within regression models, there are important distinctions. For instance, the price of a house will never be negative and changes might often be relative to its baseline price. As such, it might be more effective to regress on the logarithm of the price. Likewise, the number of days a patient spends in hospital is a discrete nonnegative random variable. As such, least mean squares might not be an ideal approach either. This sort of time-to-event modeling comes with a host of other complications that are dealt with in a specialized subfield called survival modeling.
英語のヒント
回帰は、「いくら?」や「いくつ?」という問いに答えたいときに手に取る金槌である。家が売れる金額(価格)や、野球チームの勝利数、患者が退院するまでに入院している日数を予測したいなら、おそらく回帰モデルを探している。しかし、回帰モデルのなかにも重要な区別がある。たとえば、家の価格は決して負にならず、変化はしばしば基準価格に対する相対的なものかもしれない。そのため、価格の対数に回帰するほうが効果的かもしれない。同様に、患者が病院で過ごす日数は、離散的な非負の確率変数である。そのため、最小二乗法も理想的な方法ではないかもしれない。この種の事象までの時間のモデル化には、ほかにも多くの面倒が伴い、それらは生存時間モデリングという専門の下位分野で扱われる。
The point here is not to overwhelm you but just to let you know that there is a lot more to estimation than simply minimizing squared errors. And more broadly, there is a lot more to supervised learning than regression. In this section, we focus on classification problems where we put aside how much? questions and instead focus on which category? questions.
英語のヒント
ここでの要点は、圧倒することではなく、推定には単に二乗誤差を最小にすること以上のものがたくさんあると知ってもらうことである。そしてもっと広く言えば、教師あり学習には回帰以上のものがたくさんある。この節では、「いくら?」という問いは脇に置き、代わりに「どのカテゴリー?」という問いに焦点を当てる分類問題を扱う。
  • Does this email belong in the spam folder or the inbox?
    英語のヒント
    このメールは迷惑メールのフォルダに入るべきか、受信箱に入るべきか。
  • Is this customer more likely to sign up or not to sign up for a subscription service?
    英語のヒント
    この客は、定額制サービスに申し込む可能性と申し込まない可能性のどちらが高いか。
  • Does this image depict a donkey, a dog, a cat, or a rooster?
    英語のヒント
    この画像に写っているのは、ロバか、犬か、猫か、オンドリか。
  • Which movie is Aston most likely to watch next?
    英語のヒント
    Astonが次に見る可能性が最も高いのはどの映画か。
  • Which section of the book are you going to read next?
    英語のヒント
    あなたが次に読むのは本のどの節か。
Colloquially, machine learning practitioners overload the word classification to describe two subtly different problems: (i) those where we are interested only in hard assignments of examples to categories (classes); and (ii) those where we wish to make soft assignments, i.e., to assess the probability that each category applies. The distinction tends to get blurred, in part, because often, even when we only care about hard assignments, we still use models that make soft assignments.
英語のヒント
日常的な言い方では、機械学習の実践者は分類という言葉を使い回して、微妙に異なる二つの問題を表す。(i)事例をカテゴリー(クラス)に硬く割り当てることだけに関心がある問題。(ii)軟らかい割り当てをしたい、つまり各カテゴリーが当てはまる確率を評価したい問題。この区別はぼやけがちである。その理由の一つは、硬い割り当てだけを気にする場合でも、軟らかい割り当てをするモデルを使うことが多いからである。
Even more, there are cases where more than one label might be true. For instance, a news article might simultaneously cover the topics of entertainment, business, and space flight, but not the topics of medicine or sports. Thus, categorizing it into one of the above categories on their own would not be very useful. This problem is commonly known as multi-label classification. See Tsoumakas and Katakis (2007) for an overview and Huang et al. (2015) for an effective algorithm when tagging images.
英語のヒント
さらに、複数のラベルが正しい場合もある。たとえば、ニュース記事が、娯楽、ビジネス、宇宙飛行の話題を同時に扱い、医療やスポーツの話題は扱わないことがある。そのため、上のカテゴリーのどれか一つだけに分類しても、あまり役に立たない。この問題は一般にマルチラベル分類として知られる。概観はTsoumakas and Katakis (2007)を、画像にタグを付ける効果的なアルゴリズムはHuang et al. (2015)を見てほしい。