Last active
August 29, 2015 14:19
-
-
Save evalphobia/6451a16911e84e170621 to your computer and use it in GitHub Desktop.
推薦システムを試してみる
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ダウンロードは下記より | |
# http://examples.oreilly.com/9780596529321/ | |
$ cd Downloads/PCI_Code\ Folder/chapter2/ | |
$ python | |
# 推薦モジュールのインポート | |
>>> import recommendations | |
# 映画批評家のLisa RoseとGene Seymourの類似性を計算する | |
>>> recommendations.sim_distance(recommendations.critics, 'Lisa Rose', 'Gene Seymour') | |
# 実装はrecommendations.pyにて確認できます | |
# pythonのインタプリタは Ctrl+D で終了できます |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment