歐拉距離(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.(?)
第二句話不太明白?


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM