- Hands-On Mathematics for Deep Learning
- Jay Dawani
- 399字
- 2021-06-18 18:55:12
Metric space and normed space
Metrics help define the concept of distance in Euclidean space (denoted by ). Metric spaces, however, needn't always be vector spaces. We use them because they allow us to define limits for objects besides real numbers.
So far, we have been dealing with vectors, but what we don't yet know is how to calculate the length of a vector or the distance between two or more vectors, as well as the angle between two vectors, and thus the concept of orthogonality (perpendicularity). This is where Euclidean spaces come in handy. In fact, they are the fundamental space of geometry. This may seem rather trivial at the moment, but their importance will become more apparent to you as we get further on in the book.
In Euclidean space, we tend to refer to vectors as points.
A metric on a set S is defined as a function and satisfies the following criteria:
, and when
then
(known as the triangle inequality)
For all .
That's all well and good, but how exactly do we calculate distance?
Let's suppose we have two points, and
; then, the distance between them can be calculated as follows:

And we can extend this to find the distance of points in , as follows:

While metrics help with the notion of distance, norms define the concept of length in Euclidean space.
A norm on a vector space is a function , and satisfies the following conditions:
, and when
then
(also known as the triangle inequality)
For all and
.
It is important to note that any norm on the vector space creates a distance metric on the said vector space, as follows:

This satisfies the rules for metrics, telling us that a normed space is also a metric space.
In general, for our purposes, we will only be concerned with four norms on , as follows:
(this applies only if
)
If you look carefully at the four norms, you can notice that the 1- and 2-norms are versions of the p-norm. The -norm, however, is a limit of the p-norm, as p tends to infinity.
Using these definitions, we can define two vectors to be orthogonal if the following applies:

- GitHub Essentials
- Hands-On Machine Learning with Microsoft Excel 2019
- Test-Driven Development with Mockito
- 數據庫應用基礎教程(Visual FoxPro 9.0)
- UDK iOS Game Development Beginner's Guide
- 大數據時代下的智能轉型進程精選(套裝共10冊)
- Mastering Machine Learning with R(Second Edition)
- Remote Usability Testing
- The Game Jam Survival Guide
- SQL應用及誤區分析
- Hadoop大數據開發案例教程與項目實戰(在線實驗+在線自測)
- Power BI智能數據分析與可視化從入門到精通
- Python數據分析從小白到專家
- 改進的群智能算法及其應用
- PostgreSQL高可用實戰