Coder Social home page Coder Social logo

deepampatel / simnode Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 78.27 MB

Find similar nodes in graph using jaccard similarity. Use this to recommend similar dishes and restaurants

Jupyter Notebook 100.00%
graph neo4j-admin similarity-search jaccard-similarity zomato restaurants food food-search

simnode's Introduction

SimNode: Using Graphs to do find Similar Entities/Nodes.

Finding similar restaurants on a small graph created from zomato restaurants data.

Create Graph

Using the neo4j-admin import

  1. Download data from here
  2. neo4j-admin import option requires the csv to be in a specific format to create nodes and relationships.
  3. The logic of creating these csv's can be found in this notebook
  4. Run the notebook and create required csv's
  5. Copy all the csv's to import folder of neo4j database
  6. Run the below command
sudo ./bin/neo4j-admin import --database zomato.db  --mode csv --ignore-missing-nodes --multiline-fields=True --ignore-duplicate-nodes --nodes:Location=import/locations.csv --nodes:Restaurant=import/restaurant.csv --nodes:Dish=import/dishes.csv --nodes:Type=import/type.csv --nodes:Cuisine=import/cuisine.csv --relationships:SERVES_CUISINE=import/cuisine_restaurant.csv --relationships:SERVES_DISH=import/restaurant_dish.csv --relationships:FALL_UNDER import/type_restaurant.csv --relationships:FAMOUS_FOR=import/liked_dishes_restaurant.csv --relationships:IN_AREA=import/restaurant_location.csv

TL;DR

Import graph using cypher-shell

cat zomato_food_graph.cypher | ./bin/cypher-shell -u neo4j -p password

simnode's People

Contributors

deepampatel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.