recommendation engine - Good similarity measure for comparing users -


i want compare users based on responses 10 questions. original idea resolve each question integer [1, 5], idea won't work time. example:

vec1 = [1,1,1,1,1,1,1,1,1,1]

vec2 = [5,5,5,5,5,5,5,5,5,5]

get_cos_sim(vec1, vec2) = 1

so though users responded dissimilarly, vectors same.

i similar users based on similarity of responses each question. given question, if person a's response resolved 1 , person b's response resolved 2, similarity between responses in questions higher person a's , person c's response, answered 4.

here's metric use:

take absolute value of difference between each answer, sum of values, similarity inverse.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -