Introducere în recomandările bazate pe conținut

Construirea motoarelor de recomandare în Python

Rob O'Callaghan

Director of Data

Ce sunt recomandările bazate pe conținut?

Imagine cu o carte similară celei apreciate de utilizator, recomandată acestuia.

Construirea motoarelor de recomandare în Python

Atributele sau caracteristicile elementelor

Imagine cu o carte și atributele sale.

Construirea motoarelor de recomandare în Python

Vectorizarea atributelor

ITEM Attribute 1 Attribute 2 Attribute 3 Attribute 4
Item_001 0 1 1 0
Item_002 1 0 1 0
Item_003 0 1 0 1
Construirea motoarelor de recomandare în Python

Relații de tip unu-la-mulți

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 ...
... ... ... ... ...
Construirea motoarelor de recomandare în Python

Tabulare încrucișată

pd.crosstab(                     ,                       )
Construirea motoarelor de recomandare în Python

Tabulare încrucișată

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
... ... ... ... ...
Construirea motoarelor de recomandare în Python

Să exersăm!

Construirea motoarelor de recomandare în Python

Preparing Video For Download...