Giter Club home page Giter Club logo

recq's Introduction

CSIT 5210 Project

This is the code base of CSIT 5210 project. Forked from CodeYu-RecQ.

What is RecQ?

According to upstream repo:

RecQ is a Python library for recommender systems (Python 2.7.x) in which a number of the state-of-the-art recommendation models are implemented. 

Environment Setup

MacOS/Linux

Since this repository is still using python 2 and tensorflow 1, we need some extra configuration to make this work. Follow these steps to setup your envirnoment:

  1. Install anaconda https://www.anaconda.com/products/individual

  2. Open anaconda navigator (Not the terminal)

    1. Click "Environments"
    2. Click "Import"
    3. Select file "environment.yaml" in this directory and click "Import"
  3. After everything is done, open your newly created environment and launch a terminal

  4. Go to /main and execute

    python main.py
    
  5. Select your model to check running status

Windows (Might encounter random issue)

Open anaconda navigator (Not the terminal)

  1. Click "Environments"
  2. Click "Import"
  3. Select file "environment.yaml" in this directory and click "Import"

Use pip install to install tensorflow packages in ./tensorflow package.

  1. After everything is done, open your newly created environment and launch a terminal

  2. Go to /main and execute

    python main.py
    
  3. Select D5/D7 model to check running status

Dataset Preprocessing

For some models that requires negative review dataset, If you want to preprocess data to train negative datasets, use the script in tool/negativeReview.py

Set global params like this

FEEDBACK_COLUMN_ID = 2 # Which column is the feedback column
NEGATIVE_THRESHOLD = 3 # The upper-bond of review score
DATASET_PATH = '../dataset/douban_trimmed/ratings.txt'
OUTPUT_PATH =  '../dataset/douban_trimmed/ratings_n.txt'

Runbook

Model Training

RSGAN

If you want to run new dataset on RSGAN model, you need to manually create a negative review set before feeding it to training model.

For example, for douban dataset, any data that is under rating 3 is consider as negative review. Name the file as [model]_n.txt and put it to the same directory with original rating data.

Dependency Issue

Tensorflow module not found issue

If you encounter tensorflow not found issue, make sure you install tensorflow 1.14 and check installed package by running

pip list 

recq's People

Contributors

coder-yu avatar doutong avatar giginewstart avatar huxilifeng avatar niki666 avatar recq-cse avatar yanliangwu avatar jackhhh avatar lizzhang315 avatar swjz avatar

Stargazers

 avatar  avatar

Watchers

James Cloos 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.