您的位置:首页 > 其它

recommendation system --Two UserBasedCF Code

2014-06-24 00:06 323 查看
Data Source:
http://files.grouplens.org/datasets/movielens .

Partly Describe:

u.data -- The full u data set, 100000 ratings by 943 users on 1682 items.

Each user has rated at least 20 movies. Users and items are

numbered consecutively from 1. The data is randomly

ordered. This is a tab separated list of

user id | item id | rating | timestamp.

The time stamps are unix seconds since 1/1/1970 UTC

u.user -- Demographic information about the users; this is a tab

separated list of

user id | age | gender | occupation | zip code

The user ids are the ones used in the u.data data set.

A problem encountered in the implementation process:

install texttable in python:

Download https://pypi.python.org/pypi/texttable
Unzip the contents to any
<dir>


cd <dir>


python setup.py install




Codes From:
https://github.com/wyh267/myCodeLib/blob/master/Src/Reco/userFC.py
and
http://www.oschina.net/code/snippet_244322_15369




This recommendation system will be recommended to you the most hot movies whenever you load in some more users. that's what needs to be addressed later .

AND I'm wrting one by myself. I 'LL paste it out later.

reference: http://blog.csdn.net/ygrx/article/details/15501679
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: