We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1edaeda commit 9412aa6Copy full SHA for 9412aa6
recommend_code/user_cf_by_cosine.go
@@ -8,6 +8,7 @@ import (
8
"strings"
9
)
10
11
+//基于用户的推荐(通过共同口味与偏好找相似邻居用户,K-邻居算法,你朋友喜欢,你也可能喜欢),
12
func UserCfByCosine(path, movie string, uid int, k int) {
13
data := GetUserScore(path)
14
userScore, MovieScore := GetUserAndMovieRating(data)
0 commit comments