Online Course Applied Graph Algorithms Setup and Cypher Refresher Category Hierarchy Ordering Search Results Most Relevant Reviews Photo Based Gallery Recommendations Summary: Applied Graph Algorithms Want to Speak? Get $ back. Most Relevant Reviews PageRank overview and problem statement In… Read more →

Most Relevant Reviews

PageRank overview and problem statement

In this section you will use the Personalized PageRank algorithm to identify “trusted” users, and present reviews from those users when viewing reviews of businesses.

codesandbox5

Note
Useful Resources

Exercise

  1. In Neo4j Browser, perform the steps in the Neo4j Browser guide section Relevant Reviews. (:play applied_graph_algorithms/04_relevant_reviews.html)
  2. In CodeSandbox, edit the Cypher query in src/exercises/exercise3.js to return reviews ordered by whether or not the business has been reviewed by a “trusted” user.
  3. Save this file.
  4. In CodeSandbox Browser:
    1. Perform a search on behalf of as user by first selecting a user.
    2. Select the Restaurant category.
    3. In the search pane, specify the string Mamma for the name of the restaurant. This will search for restaurants that start with that name and have reviews that are most relevant to the user. The remaining reviews are in chronological order.
    4. You can select a restaurant to see the reviews.

Solution

If you get stuck, watch this video for a walk-through of the solution:

Most relevant reviews exercise solution

Check your understanding

Question 1

Algorithm Understanding: Personalized PR

Which of the following best describe the Personalized PageRank algorithm?

Select the correct answer.

  • It measures similarity of the structural context in which objects occur, based on their relationships with other objects.
  • It is a variation of the PageRank algorithm that is biased towards a set of source nodes.
  • It computes the influence of a node by measuring the number of the immediate neighbors and also all other nodes in the network that connect to the node under consideration through these immediate neighbors.
  • It is a variation of the PageRank algorithm that reduces the bias that PageRank has towards assigning higher scores to nodes with relationships from nodes that have few outgoing relationships.

Question 2

Running the algorithm in Neo4j

What is the default value of the dampingFactor used by the PageRank procedure?

Select the correct answer.

  • 0.15
  • 0.85
  • 0.70
  • 0.12

Summary

You should now be able to:

  • Use the Personalized PageRank graph algorithm with Neo4j.

Stay Connected

Sign up to find out more about Neo4j's upcoming events & meetups.