... | @@ -101,7 +101,7 @@ Distance(x_{i},x_{i'}) = \sum_{m=1}^{M} |x_{im}-x_{i'm}| |
... | @@ -101,7 +101,7 @@ Distance(x_{i},x_{i'}) = \sum_{m=1}^{M} |x_{im}-x_{i'm}| |
|
```
|
|
```
|
|
In this case, we will be considering the distance between features, not their squires. This is what we actually did with l1 norm in the regression analysis. We can visualize it as if we are in a car and trying to get from point A to B, in a city. This definition will tell us how many rows and columns of city blocks (buildings) we have to move horizontally and vertically for that journey.
|
|
In this case, we will be considering the distance between features, not their squires. This is what we actually did with l1 norm in the regression analysis. We can visualize it as if we are in a car and trying to get from point A to B, in a city. This definition will tell us how many rows and columns of city blocks (buildings) we have to move horizontally and vertically for that journey.
|
|
|
|
|
|
Another important distance in ML is projection-based, cosine distance. This particularly used in text processing. Imagine that you want to classify a novel texts according to their genre. Here we can project the phrases into classes like Horror, Historical, Romance etc. The point you should remember is distance-based learning is used in many of the models we studied and how you define it will change the results.
|
|
Another important distance in ML is projection-based, cosine distance. It is particularly used in text processing. Imagine that you want to classify novel texts according to their genre. Here we can project the phrases/words onto classes like Horror, Historical, Romance etc. The point you should remember is distance-based learning is used in many of the models we studied and how you define it will change the results.
|
|
|
|
|
|
For more distance measures, You can also check the post,[17 types of similarity and dissimilarity measures](https://towardsdatascience.com/17-types-of-similarity-and-dissimilarity-measures-used-in-data-science-3eb914d2681).
|
|
For more distance measures, You can also check the post,[17 types of similarity and dissimilarity measures](https://towardsdatascience.com/17-types-of-similarity-and-dissimilarity-measures-used-in-data-science-3eb914d2681).
|
|
|
|
|
... | | ... | |