concept similarity in category graphs

appears as: similarity, similarity, similarities, Similarities
Graph Powered Machine Learning

This is an excerpt from Manning's book Graph Powered Machine Learning.

The possible similarity values are between 0 and 1, where values near to 1 indicate a strong similarity. Consider now that you have to compute this similarity between each pair of item in the database. So if you have 1M products you need to compute 1M * 1M value of similarity. You can reduce such big number by half considering that the similarity is commutative that means cos(a, b) = cos(b, a), but it still a lot. In this case graph could be a valuable help for speedup your machine learning algorithm for the recommendations.

  • Similarities are easy to store back in the graph as relationships between items. This represents a prefect use case for graph modeling and navigating similarity relationships provides for fast recommendations.
  • Query 7.3 Filtering events considering only two items of contextual information
    MATCH (event:Event)-[:EVENT_ITEM]->(item:Item)
    MATCH (event)-[:EVENT_USER]->(user:User)
    MATCH (event)-[:EVENT_LOCATION]->(location:Location)
    MATCH (event)-[:EVENT_COMPANION]->(companion:Companion)
    WHERE location.value = "Cinema"
    AND companion.value = "Partner"
    RETURN user.userId, item.itemId, event.rating