Ways to calculate similarity

前端 未结 6 1522
执念已碎
执念已碎 2020-12-23 22:49

I am doing a community website that requires me to calculate the similarity between any two users. Each user is described with the following attributes:

age, skin ty

6条回答
  •  清歌不尽
    2020-12-23 23:16

    Look at algorithms for computing srting difference. Its very similar to what you need. Store your attributes as a bit string and compute the distance between the strings

提交回复
热议问题