Interspace给出了两个向量之间不同类型的距离。
interspace的Python项目详细描述
空隙
给出两个向量之间的不同距离,作为输入。在
安装
pip install interspace
不同的距离函数
minkowski(vector_1, vector_2, p=1)
euclidean(vector_1, vector_2)
manhattan(vector_1, vector_2)
cosine_similarity(vector_1, vector_2)
haversine(coord1, coord2, R = 6372800)
hamming(int, int)
hamming(str, str) # where, length of both the strings should be same
使用
^{pr2}$- 项目
标签: