In real-valued ratings domains, the similarity scores can be used to
generate predictions using a weighted average, similar to the procedure
used in user–user CF. Recommendations are then generated by picking
the candidate items with the highest predictions.
After collecting a set S of items similar to i, pu,i can be predicted
as follows