项目作者: xiaohk

项目描述 :
Madison restaurant Yelp rating prediction based on review text
高级语言: Jupyter Notebook
项目地址: git://github.com/xiaohk/stat333_project_2.git
创建时间: 2017-04-24T02:46:00Z
项目社区:https://github.com/xiaohk/stat333_project_2

开源协议:

下载


d

Description

The second project of Spring 2017 Stat 333 is a Kaggle competition, where we are asked to predict Yelp ratings based on the text comments in Madison WI area. Our group got rank one on both public and private leaderboard 🎉.



Models

Model Directory Name Description
Deep Learning ./dl Use Stanford’s GloVe to vectorize text, and a simple CP-CP-CP neural network
Linear Regression ./lr Use TFIDF text encoding, and lasso, ridge regression and elastic net
Multiple Linear Regression ./mrl Naive simple multiple linear regression with silly variables
Neural Network ./nn Use tf-idf text encoding, and a simple one hidden layer neural network

Results

Our best model is using Ridge regression with tf-idf text encoding. You can check out the self-explained Jupyter notebook here.

Comments

  1. Feature engineering is much more important in NLP. We have tried many different text encoding methods here. GLoVe should have worked the best, but it was beaten by tf-idf in this very project.
  2. We extracted the stem of words and removed stopping words. It turns out the stopping word level really worths tuning.

You can see our presentation to get more info.