在阅读 What are vector embeddings? 时产生的疑问
Vectors are mathematical entities that possess both magnitude and direction. This ability to not only convey how much (magnitude) but also in which direction, makes them powerful tools for representing and manipulating different types of complex data.
一个向量包含 magnitude
与 direction
,却可以通过一个数组表示
Vectors are often pictured as arrows pointing in a certain direction within a space, but they can also be translated into numbers. Representing vectors as numerical values makes it easier to work with them mathematically.
请问如何通过数组表示一个向量?
通过 stackexchange 上 What is the difference between an array and a vector? 的回答解惑了
当用一个数组表示向量时,数组中的数值针对的是向量空间(vector space),比如 [0.95973, 0.12, 0.22],可以通过这些数值计算出 magnitude
与 direction