Relevance ranking of items can be calculated using
machine learning algorithm k-nearest neighbour with cosine
similarity. According to [5], cosine similarity is the most
widely used method to calculate document similarities in
vector space model. Cosine similarity between user U and
item I is the sum of cosine similarity for each corresponding
field in U and I. Formal computation formula defined as