How ALS alternates to generate predictions

Créer des moteurs de recommandation avec PySpark

Jamen Long

Data Scientist at Nike

partially blank matrix

Créer des moteurs de recommandation avec PySpark

partially blank matrix with two factor matrices completely full

Créer des moteurs de recommandation avec PySpark

partially blank matrix with two factor matrices completely full on factor matrix has "adjusted" written over it, other matrices have "constant" written over them

Créer des moteurs de recommandation avec PySpark

same image as above with graph containing iterations on x axis and RMSE on y axis and a dot high on the left

Créer des moteurs de recommandation avec PySpark

same image as above with graph containing iterations on x axis and RMSE on y axis and a new dot lower on the y axis and further right on x axis, a line connecting the dots

Créer des moteurs de recommandation avec PySpark

same image as above with graph containing iterations on x axis and RMSE on y axis and another dot lower on the y axis and further right on x axis, a line connecting the dots

Créer des moteurs de recommandation avec PySpark

same image as above with more dots indicating the RMSE decreasing as the model continues to iterate

Créer des moteurs de recommandation avec PySpark

partially blank matrix with arrow leading to completely full approximation of other matrix

Créer des moteurs de recommandation avec PySpark

partially blank matrix

Créer des moteurs de recommandation avec PySpark

partially blank matrix with two completely full factor matrices

Créer des moteurs de recommandation avec PySpark

partially blank matrix with one value highlightd and two factor matrices with respective row and column highlighted

Créer des moteurs de recommandation avec PySpark

partially blank matrix with another value highlightd and two factor matrices with respective row and column highlighted

Créer des moteurs de recommandation avec PySpark

partially blank matrix with another value highlightd and two factor matrices with respective row and column highlighted

Créer des moteurs de recommandation avec PySpark

partially blank matrix with horizontal arrows pointing to the first value in each row and two factor matrices

Créer des moteurs de recommandation avec PySpark

partially blank matrix with vertical, downward arrows pointing to the first value in each column and two factor matrices

Créer des moteurs de recommandation avec PySpark

original matrix with two factor matrices with all values in factor matrices highlighted

Créer des moteurs de recommandation avec PySpark

original matrix with two factor matrices with all values in factor matrices highlighted with blank spaces in original matrix highlighted

Créer des moteurs de recommandation avec PySpark

fourth matrix added showing whre ALS filled in the blank cells

Créer des moteurs de recommandation avec PySpark

Let's practice!

Créer des moteurs de recommandation avec PySpark

Preparing Video For Download...