Table of contents
Open Table of contents
1. Các khái niệm liên quan
1.1. Vector space
Là tổng các vector, các vector có thể được nhân với scalar.
- Kí hiệu phần tổng:
- Kí hiệu phần nhân:
Real vector space:
Complex vector space:
1.2. Inner Product
Inner Product tức tích vô hướng, được dùng bởi các phép toán khác của Vector Space
Kí hiệu:
Tính chất:
Inner Product Space:
2. Các khái niệm chính
2.1. Norm
Là độ dài trong không gian của vector
Khi đó: vector u, v đều và scalar
Tính chất:
- Non-negatie: $$ |\mathbf{v}| \geq 0 \quad \text{and} \quad |\mathbf{v}| = 0 \iff \mathbf{v} = \mathbf{0}.
- Triangle Inequality: $$ |\mathbf{u} + \mathbf{v}| \leq |\mathbf{u}| + |\mathbf{v}|.
|\mathbf{v}| = \sqrt{\langle \mathbf{v}, \mathbf{v} \rangle}
undefinedNếu inner product sử dụng dot product trên tập thì được gọi là Euclidian Distance
Distance được gọi là metric khi:
- Positive Definite: $$ d(\mathbf{x}, \mathbf{y}) \geq 0 \quad \text{for all } \mathbf{x}, \mathbf{y} \quad \text{and}\quad d(\mathbf{x}, \mathbf{y}) = 0 \iff \mathbf{x} = \mathbf{y}
d(\mathbf{x}, \mathbf{y}) = d(\mathbf{y}, \mathbf{x})
3. Triangle Inequality: $$ d(\mathbf{x}, \mathbf{z}) \leq d(\mathbf{x}, \mathbf{y}) + d(\mathbf{y}, \mathbf{z})2.4. Feature Vectors và Feature Distance
Một ví dụ của Feature Vector là RGB: Nếu là hai Feature vectors của hai entities thì là feature distance => Nearest khi mà nhỏ nhất => là nearest neighbor nếu: $$ |\mathbf{x} - \mathbf{z}_j| \leq |\mathbf{x} - \mathbf{z}_i|, \quad \forall i = 1, 2, \dots, m.