第22章付録:深層学習のための数学
22.9. Naive Bayes22.9 ナイーブベイズ
Throughout the previous sections, we learned about the theory of probability and random variables. To put this theory to work, let’s introduce the naive Bayes classifier. This uses nothing but probabilistic fundamentals to allow us to perform classification of digits.
英語のヒント
これまでの節を通じて、確率と確率変数の理論を学んだ。この理論を役立てるため、ナイーブベイズ分類器を紹介しよう。これは確率の基礎だけを使って、数字の分類を行えるようにする。
Learning is all about making assumptions. If we want to classify a new data example that we have never seen before we have to make some assumptions about which data examples are similar to each other. The naive Bayes classifier, a popular and remarkably clear algorithm, assumes all features are independent from each other to simplify the computation. In this section, we will apply this model to recognize characters in images.
英語のヒント
学習とは、仮定を置くことにほかならない。これまでに見たことのない新しいデータの例を分類したいなら、どのデータの例が互いに似ているかについて何らかの仮定を置かなければならない。人気があり非常にわかりやすいアルゴリズムであるナイーブベイズ分類器は、計算を単純にするため、すべての特徴が互いに独立だと仮定する。この節では、このモデルを適用して画像の中の文字を認識する。
%matplotlib inline
import math
import torch
import torchvision
from d2l import torch as d2l
d2l.use_svg_display()