Coder Social home page Coder Social logo

bingjie-du / feature_engineering_for_yelp_dataset Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liyingchan/feature_engineering_for_yelp_dataset

1.0 1.0 0.0 14 KB

Extract user profile, item profile, user text and item text features on Yelp dataset.

Python 100.00%

feature_engineering_for_yelp_dataset's Introduction

Feature_Engineering_for_Yelp_Dataset

Extract users' and items' top K neighbors(here K=100) based on user profile, item profile, user text, item text and geography features on Yelp dataset.

Steps:

  1. extract_matrix_index.py : mapping the users' and items' id strings to indices.

  2. if you want to extract item profile top K neighbors:
    2.1 get_item_vector.py : item profile feature vectoring
    2.2 get_item_profile_similarity.py :get item profile top K neighbors after calculate cosine similarity

  3. if you want to extract item geography top K neighbors: get_item_gov_similarity.py

  4. if you want to extract user profile top K neighbors:
    4.1 get_user_vector.py : user profile feature vectoring
    4.2 get_user_profile_similarity.py :get user profile top K neighbors after calculate cosine similarity

  5. if you want to extract user or item text top K neighbors:
    5.1 concat_reviews.py : concatenate users' and items' reviews
    5.2 get_text_similarity.py : get user and item text similarity matrix
    5.3 sim_matrix_to_dict.py: get user and item text top K neighbors after calculate similarity

feature_engineering_for_yelp_dataset's People

Contributors

liyingchan avatar

Stargazers

 avatar

Watchers

 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.