コンテンツベース推薦の入門

Pythonでつくるレコメンデーションエンジン

Rob O'Callaghan

Director of Data

コンテンツベース推薦とは?

ユーザーが気に入った本に似た本が推薦されている画像。

Pythonでつくるレコメンデーションエンジン

アイテムの属性・特徴

本とその属性の画像。

Pythonでつくるレコメンデーションエンジン

属性のベクトル化

ITEM 属性1 属性2 属性3 属性4
Item_001 0 1 1 0
Item_002 1 0 1 0
Item_003 0 1 0 1
Pythonでつくるレコメンデーションエンジン

一対多の関係

Book Genre
The Hobbit Adventure
The Hobbit Fantasy
The Great Gatsby Tragedy
... ...
Book Adventure Fantasy Tragedy ...
The Hobbit 1 1 0 ...
The Great Gatsby 0 0 1 ...
... ... ... ... ...
Pythonでつくるレコメンデーションエンジン

クロス集計

pd.crosstab(                     ,                       )
Pythonでつくるレコメンデーションエンジン

クロス集計

pd.crosstab(book_genre_df['Book'], book_genre_df['Genre'])
Book Adventure Fantasy Tragedy Social commentary
The Hobbit 1 1 0 0
The Great Gatsby 0 0 1 1
A Game of Thrones 0 1 0 0
Macbeth 0 0 1 0
... ... ... ... ...
Pythonでつくるレコメンデーションエンジン

演習に進みましょう

Pythonでつくるレコメンデーションエンジン

Preparing Video For Download...