欧拉距离(Euclidean distance)

a=[2400,156000]
b=[1950,126750]
np.linalg.norm(a-b)
29253.461333661013
a=[240,15600]
b=[195,12675]
np.linalg.norm(a-b)
2925.346133366101

Additionally, Euclidean distance multiplies the effect of redundant information in the dataset. If I had five variables which are heavily correlated and we take all five variables as input, then we would weight this redundancy effect by five.(?)
第二句话不太明白?

posted @ 2020-04-15 20:41  2021年的顺遂平安君  阅读(71)  评论(0编辑  收藏  举报