Giter Site home page Giter Site logo

yelp-recommender-system's Introduction

Recommender System for the Yelp Challenge Dataset

This is a recommendation system for the Yelp challenge.

The goal is to recommend businesses to users based on their reviews of other businesses.

The difficulty in this chosen task is the large number of users and businesses. To implement the classical collaborative filtering algorithm, a matrix with businesses as rows and users as columns should be created. This will be about 85500 by 686000, which would require a huge amount of memory.

This issue is naturally resolved when assuming that for a reocmmender system a certain number of ratings are found for every user and every business.

Also, this recommendation system only reocmmend businesses within states that they have given reviews for. Hence, only "states" with an adequate nmuber of businesses are considered for recommendations ( > 20 business/state).

Requirements:

  • Python 3
  • Pandas ('0.19.2')
  • NumPy
  • Scipy.optimize.minimize
  • ipython, or preferably, latest Anaconda with Python 3

Usage:

  1. Clone reposity
  2. Extract the dataset json files in the subdirectory yelp_dataset
  3. Open/run the recommender system.ipynb notebook

A Dockerfile is included in the repo, and here is how it can be used:

  1. Clone reposity
  2. Extract the dataset json files in the subdirectory yelp_dataset
  3. Run the following commands:
cd nyker
docker build -t yelp
docker run -v `pwd`/.:/nyker -p 8888:8888 -it yelp
# then from within the docker container:
cd nyker
jupyter notebook --ip=0.0.0.0
# the --ip=0.0.0.0 might be needed if running on linux guest in virtualbox
  1. open your browser to localhost:8888
  2. open the "recommender system.ipynb" notebook, and follow along.

yelp-recommender-system's People

Contributors

abulhawa 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.