Skip to content

Instantly share code, notes, and snippets.

@evalphobia
Last active August 29, 2015 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evalphobia/6451a16911e84e170621 to your computer and use it in GitHub Desktop.
Save evalphobia/6451a16911e84e170621 to your computer and use it in GitHub Desktop.
推薦システムを試してみる
# ダウンロードは下記より
# 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