Giter VIP home page Giter VIP logo

yelpchallenge's Introduction

Dataset

  • Create data folders

      $ mkdir -p dataset computed saved
    

dataset will contain the raw data, computed the values computed from this dataset, saved values computed for other models.

  • Get the data from yelp into dataset/

  • Untar the data

      $ cd dataset
      $ tar xvf yelp_phoenix_academic_dataset.tgz
    
  • Separate the dataset into a holdout and and training set.

      $ sort -R yelp_academic_dataset_review.json > yelp_academic_dataset_review_randomize.json
      $ head --lines=-50000 yelp_academic_dataset_review_randomize.json > yelp_academic_dataset_review_training.json
      $ head --lines=50000 yelp_academic_dataset_review_training.json > yelp_academic_dataset_review_training_small.json
      $ head --lines=5000 yelp_academic_dataset_review_training.json > yelp_academic_dataset_review_training_sample.json
      $ mkdir -p holdout
      $ tail --lines=50000 yelp_academic_dataset_review_randomize.json > holdout/yelp_academic_dataset_review_holdout.json
      $ tail --lines=5000 yelp_academic_dataset_review_randomize.json > holdout/yelp_academic_dataset_review_holdout_small.json
    

Setup

Before doing anything, update your python path:

    $ export PYTHONPATH=$PYTHONPATH:$(pwd)

Folders used

  • huang : train Huang's word vectors on dataset
  • sLDA : assess accuracy of sLDA model
  • proto : uses Huang's prototype to build a regression model
  • utils : contains helpers used in the python scripts

Computed data

We tried to implement it so that most computed data go into computed. The utils script loadcomputed and savecomputed are to be used to save these data in separate folders depending on the type of analysis you are running. Save your work!

yelpchallenge's People

Contributors

nicolasehrhardt avatar cnnshuti avatar

Watchers

 avatar  avatar

Forkers

jeenakk

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.