| Algorithm 1: The early customer-clustering technique |
|
Input:User–item rating matrix, clustering number k Output:The smoothed dense user–item matrix Start: Select user set ; Select item set i ; Select the top k rating users as the clustering ; The clustering center is null as c ; do for each user for each cluster center c calculate the similarity (, c); end for sim(, c; end for for each cluster for each user c; end for end for while (c is not change) End |