Introduzione ai consigli basati sui contenuti

Creare motori di raccomandazione in Python

Rob O'Callaghan

Director of Data

Cosa sono i consigli basati sui contenuti?

Immagine che mostra il consiglio di un libro simile a quello piaciuto all’utente.

Creare motori di raccomandazione in Python

Attributi o caratteristiche degli item

Immagine di un libro e delle sue caratteristiche.

Creare motori di raccomandazione in Python

Vettorizzare gli attributi

ITEM Attributo 1 Attributo 2 Attributo 3 Attributo 4
Item_001 0 1 1 0
Item_002 1 0 1 0
Item_003 0 1 0 1
Creare motori di raccomandazione in Python

Relazioni uno-a-molti

Libro Genere
The Hobbit Avventura
The Hobbit Fantasy
The Great Gatsby Tragedia
... ...
Libro Avventura Fantasy Tragedia ...
The Hobbit 1 1 0 ...
The Great Gatsby 0 0 1 ...
... ... ... ... ...
Creare motori di raccomandazione in Python

Tabelle a doppia entrata

pd.crosstab(                     ,                       )
Creare motori di raccomandazione in Python

Tabelle a doppia entrata

pd.crosstab(book_genre_df['Book'], book_genre_df['Genre'])
Libro Avventura Fantasy Tragedia Commento sociale
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
... ... ... ... ...
Creare motori di raccomandazione in Python

Ayo berlatih!

Creare motori di raccomandazione in Python

Preparing Video For Download...