In the context of comparing elements in a vector space, there is a huge variety of distance measures or metric at our disposal. Let us focus on a particular metric induced by the
which is the
For
where
Fill in the code to calculate the Euclidean distance between two vectors
You can use numpy
functions, such as np.linalg.norm
or the inner product np.inner
.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: