\includegraphics[width=\linewidth]{figures/amazon.jpg}
\includegraphics[width=\linewidth]{figures/amazon2.jpg}
\includegraphics[width=\linewidth]{figures/amazon3.jpg}
\begin{tabular}{ccccc} & \includegraphics[height=2.5cm]{figures/1.jpg} & \includegraphics[height=2.5cm]{figures/2.jpg} & \includegraphics[height=2.5cm]{figures/3.jpg} & \includegraphics[height=2.5cm]{figures/4.jpg}\ Sacha & ? & 5 & 2 & ?\ Ondine & 4 & 1 & ? & 5\ Pierre & 3 & 3 & 1 & 4\ Joëlle & 5 & ? & 2 & ? \end{tabular}
\begin{tabular}{ccccc} & \includegraphics[height=2.5cm]{figures/1.jpg} & \includegraphics[height=2.5cm]{figures/2.jpg} & \includegraphics[height=2.5cm]{figures/3.jpg} & \includegraphics[height=2.5cm]{figures/4.jpg}\ Sacha & \alert{3} & 5 & 2 & \alert{2}\ Ondine & 4 & 1 & \alert{4} & 5\ Pierre & 3 & 3 & 1 & 4\ Joëlle & 5 & \alert{2} & 2 & \alert{5} \end{tabular}
Pour recommander des films à quelqu'un :
- On introduit un \alert{score de similarité} entre personnes
- On détermine les 10 personnes \alert{les plus proches} de lui
- On lui recommande ce qu'ils ont aimé qu'il n'a pas vu
\begin{tabular}{c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c}
& \footnotesize{007} & \footnotesize{Batman 1} & \footnotesize{Shrek 2} & \footnotesize{Toy Story 3} & \footnotesize{Star Wars 4} & \footnotesize{Twilight 5}\
Alice &
\begin{center} Quel score de similarité entre utilisateurs choisir ? \end{center}
\begin{tabular}{c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c}
& \footnotesize{007} & \footnotesize{Batman 1} & \footnotesize{Shrek 2} & \footnotesize{Toy Story 3} & \footnotesize{Star Wars 4} & \footnotesize{Twilight 5}\
Alice &
\end{center}
\vspace{2mm}
\begin{tabular}{c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c}
& \footnotesize{007} & \footnotesize{Batman 1} & \footnotesize{Shrek 2} & \footnotesize{Toy Story 3} & \footnotesize{Star Wars 4} & \footnotesize{Twilight 5}\
Alice &
Alice est \alert{plus proche} de Charles que de Bob \end{center}
\begin{center}
\begin{tabular}{c@{\hspace{2mm}}|c@{\hspace{2mm}}c@{\hspace{2mm}}c@{\hspace{2mm}}c@{\hspace{2mm}}c}
& Alice & Bob & Charles & Daisy & JJ\
\hline
Alice &
\begin{center} Qui sont les 2 plus proches voisins d'Alice ? \end{center}
\begin{tabular}{c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c}
& \footnotesize{007} & \footnotesize{Batman 1} & \footnotesize{Shrek 2} & \footnotesize{Toy Story 3} & \footnotesize{Star Wars 4} & \footnotesize{Twilight 5}\
Alice &
\begin{center} Connaissant ses voisins, quelles sont les chances d'Alice d'apprécier ces films ? \end{center}
\begin{tabular}{c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c@{\hspace{3mm}}c}
& \footnotesize{007} & \footnotesize{Batman 1} & \footnotesize{Shrek 2} & \footnotesize{Toy Story 3} & \footnotesize{Star Wars 4} & \footnotesize{Twilight 5}\
Alice &
\begin{center}
On peut calculer la moyenne :\
- \texttt{calculer_score}$(i, j)$
- \texttt{calculer_tous_scores}$()$
- \texttt{plus_proches_voisins}$(i)$
- \texttt{calculer_prediction}$(i, i_{film})$
- \texttt{calculer_toutes_predictions}$(i)$
- Le même code pour le petit exemple et pour la grosse base de données
- Calculer tous les scores, c'est long, j'ai juste besoin de connaître les voisins d'Alice
- Recalculer les voisins à chaque fois, c'est idiot
- Division par zéro lorsqu'aucun voisin n'a vu le film
Un grand merci à Jill-Jênn Vie
- Auteur de cet atelier
- Créateur de Mangaki et Girls Can Code
- Ex-président de Prologin
- Chercheur à RIKEN AIP (Tokyo)
- Auteur du livre Programmation Efficace
- Pianiste du Trio Elm
\begin{columns} \begin{column}{0.33\textwidth} \includegraphics[width=\linewidth]{figures/prologin.png} \end{column} \begin{column}{0.33\textwidth} \includegraphics[width=\linewidth]{figures/vie-duerr.jpg} \end{column} \begin{column}{0.33\textwidth} \includegraphics[width=\linewidth]{figures/trioelm.png}\hfill \includegraphics[width=\linewidth]{figures/mangaki.png}\hfill \end{column} \end{columns}