Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.21 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.21 KB

OnlineJudgeRecommend

An ACM problem recommendation module ! (Collaborative Filtering Algorithm, based on hustoj)

Requirements

  • Python 2.7+ (Ubuntu 14.04)

Introduction

关于协同过滤的介绍,《集体智慧编程》第二章有详细的介绍。

Screenshots

RDM

Installation

  1. Install Python 2.7+

  2. Install third library

sudo apt-get install python-numpy
sudo apt-get install python-scipy
sudo apt-get install python-mysqldb

  1. db

use jol; create table problem_sim(

);

  1. Download src

git clone https://github.com/ForrestSu/OnlineJudgeRecommend.git recommend

  1. Modify Database Password in recommend.py.

  2. AutoRun Everyday

vi /etc/crontab #系统每天6点30分执行recommend.py (crontab文件PATH后追加/etc/recommend)
30 6 * * * root python /etc/recommend/recommend.py >> /etc/recommend/rec.log 2>&1

  1. Modify HustOj front page

Author

SunQuan

Publications

2015年06月,在电脑与信息技术上发表一篇小论文《协同过滤算法在ACM在线评测推荐系统中的应用研究》