Skip to content

Commit 9412aa6

Browse files
author
hero
committed
添加基于用户协同推荐算法
1 parent 1edaeda commit 9412aa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

recommend_code/user_cf_by_cosine.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"strings"
99
)
1010

11+
//基于用户的推荐(通过共同口味与偏好找相似邻居用户,K-邻居算法,你朋友喜欢,你也可能喜欢),
1112
func UserCfByCosine(path, movie string, uid int, k int) {
1213
data := GetUserScore(path)
1314
userScore, MovieScore := GetUserAndMovieRating(data)

0 commit comments

Comments
 (0)