第22章付録:深層学習のための数学
22.1.1. Geometry of Vectors22.1.1 ベクトルの幾何学
First, we need to discuss the two common geometric interpretations of vectors, as either points or directions in space. Fundamentally, a vector is a list of numbers such as the Python list below.
英語のヒント
まず、ベクトルについてのよくある二つの幾何学的な解釈、つまり空間の中の点としての解釈と方向としての解釈を論じる必要がある。根本的には、ベクトルは、下のPythonのリストのような数のリストである。
v = [1, 7, 0, 1]Mathematicians most often write this as either a column or row vector, which is to say either as
英語のヒント
数学者は、これを列ベクトルか行ベクトルのどちらかとして書くことが最も多い。つまり、次のどちらかである。
(22.1.1)
or
英語のヒント
または
(22.1.2)
These often have different interpretations, where data examples are column vectors and weights used to form weighted sums are row vectors. However, it can be beneficial to be flexible. As we have described in Section 2.3, though a single vector’s default orientation is a column vector, for any matrix representing a tabular dataset, treating each data example as a row vector in the matrix is more conventional.
英語のヒント
これらには異なる解釈が与えられることが多く、データの例は列ベクトル、重み付き和を作るのに使う重みは行ベクトルである。しかし、柔軟に考えるのが有益なこともある。2.3節で述べたように、一つのベクトルの既定の向きは列ベクトルだが、表形式のデータセットを表す行列では、各データの例を行列の中の行ベクトルとして扱うほうが慣例的である。
Given a vector, the first interpretation that we should give it is as a point in space. In two or three dimensions, we can visualize these points by using the components of the vectors to define the location of the points in space compared to a fixed reference called the origin. This can be seen in Fig. 22.1.1.
英語のヒント
ベクトルが与えられたとき、最初に与えるべき解釈は空間の中の点としての解釈である。2次元や3次元では、原点と呼ばれる固定された基準に対する空間の中の点の位置を、ベクトルの成分を使って定めることで、これらの点を視覚化できる。これは図22.1.1で見られる。
Fig. 22.1.1図22.1.1
An illustration of visualizing vectors as points in the plane. The first component of the vector gives the -coordinate, the second component gives the -coordinate. Higher dimensions are analogous, although much harder to visualize.
英語のヒント
ベクトルを平面上の点として視覚化した図。ベクトルの第1成分は座標を、第2成分は座標を与える。より高い次元でも同様だが、視覚化はずっと難しい。
This geometric point of view allows us to consider the problem on a more abstract level. No longer faced with some insurmountable seeming problem like classifying pictures as either cats or dogs, we can start considering tasks abstractly as collections of points in space and picturing the task as discovering how to separate two distinct clusters of points.
英語のヒント
この幾何学的な見方のおかげで、問題をより抽象的なレベルで考えられる。写真を猫か犬に分類するといった、乗り越えられないように見える問題にもはや直面することなく、タスクを空間の中の点の集まりとして抽象的に考え始め、タスクを、二つの別々の点の集団をどう分けるかを見つけることとして思い描ける。
In parallel, there is a second point of view that people often take of vectors: as directions in space. Not only can we think of the vector as the location units to the right and units up from the origin, we can also think of it as the direction itself to take steps to the right and steps up. In this way, we consider all the vectors in figure Fig. 22.1.2 the same.
英語のヒント
並行して、人々がベクトルについてよくとる二つ目の見方がある。空間の中の方向としての見方である。ベクトルを、原点から右に単位、上に単位の位置と考えられるだけでなく、右に歩、上に歩進む方向そのものとも考えられる。このように考えると、図22.1.2のベクトルはすべて同じものとみなせる。
Fig. 22.1.2図22.1.2
Any vector can be visualized as an arrow in the plane. In this case, every vector drawn is a representation of the vector .
英語のヒント
どんなベクトルも、平面上の矢印として視覚化できる。この場合、描かれたベクトルはどれもベクトルを表している。
One of the benefits of this shift is that we can make visual sense of the act of vector addition. In particular, we follow the directions given by one vector, and then follow the directions given by the other, as is seen in Fig. 22.1.3.
英語のヒント
この見方の転換の利点の一つは、ベクトルの足し算という操作を目で見て理解できることである。とくに、図22.1.3で見られるように、一方のベクトルが与える方向に進み、それからもう一方のベクトルが与える方向に進む。
Fig. 22.1.3図22.1.3
We can visualize vector addition by first following one vector, and then another.
英語のヒント
ベクトルの足し算は、まず一方のベクトルに沿って進み、それからもう一方に沿って進むことで視覚化できる。
Vector subtraction has a similar interpretation. By considering the identity that , we see that the vector is the direction that takes us from the point to the point .
英語のヒント
ベクトルの引き算にも同じような解釈がある。恒等式を考えると、ベクトルは点から点へ連れて行く方向であることがわかる。