“…In the second, Pacula's method was used to calculate the ratings from the simple play count, without considering sessions. Basic and matrix factorization CF (1) P : � p i,j , P ϵ M n×m (N), (2) S : � s i,j , S ϵ M n×m (N) (3) NS : � ns i,j , NS ϵ M n×m (N) (4) Set α value (5) for i � 1 to n do (6) for j � 1 to m do (7) Freq i,j � α(s i,j / m j�1 s i,j ) + (1 − α)(ns i,j / m j�1 ns i,j ) (8) end for (9) end for (10) for i � 1 to n do (11) T � sequence (Freq i,j ) k′ ∀ j |p i,j > 0 ∧ (Freq i,j ) k′ > (Freq i,j ) k ′ +1 (12) S(i) � sequence Freq k′ (i) � T (13) for j � 1 to m do (14) Set k value |Freq k (i) � Freq i,j (15) r i,j � 4 (1 − k−1 k′�1 Freq k′ (i)) (16) end for (17) end for (18)…”