File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
- ![ SDLib ] ( http://i2.muimg.com/1949/a23f0509950f23f1 .png )
2
- </ br >
1
+ < img src = " http://upload.ouliu.net/i/20171229203635lwns3 .png " width = " 250 " height = " 75 " />
2
+
3
3
** Founder** : [ @Coder-Yu ] ( https://github.com/Coder-Yu ) </br >
4
4
** Main Contributors** : [ @somnussyq ] ( https://github.com/somnussyq ) [ @hustzhoutian ] ( https://github.com/hustzhoutian ) [ @DouTong ] ( https://github.com/DouTong ) <br >
5
5
** Code Reviewer** : [ @mingaoo ] ( https://github.com/mingaoo ) <br >
Original file line number Diff line number Diff line change 1
- ratings=../dataset/AverageAttack0.10.1 /profiles.txt
1
+ ratings=../dataset/amazon /profiles.txt
2
2
ratings.setup=-columns 0 1 2
3
- label=../dataset/AverageAttack0.10.1 /labels.txt
3
+ label=../dataset/amazon /labels.txt
4
4
methodName=CoDetector
5
5
evaluation.setup=-ap 0.3
6
6
item.ranking=on -topN 50
7
7
num.max.iter=200
8
8
learnRate=-init 0.01 -max 0.01
9
- reg.lambda=-u 0.03 -i 0.01
9
+ reg.lambda=-u 0.8 -i 0.4
10
10
CoDetector=-k 10 -negCount 256 -gamma 1 -filter 4
11
- output.setup=on -dir ../results/
11
+ output.setup=on -dir ../results/amazon/
Original file line number Diff line number Diff line change 20
20
conf = - 1
21
21
order = input ('please enter the num of the method to run it:' )
22
22
import time
23
- s = time .clock ()
23
+ s = time .time ()
24
24
# if order == 0:
25
25
# try:
26
26
# import seaborn as sns
50
50
exit (- 1 )
51
51
sd = SDLib (conf )
52
52
sd .execute ()
53
- e = time .clock ()
53
+ e = time .time ()
54
54
print "Run time: %f s" % (e - s )
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ def buildModel(self):
115
115
116
116
for user in self .SPPMI :
117
117
u = self .dao .all_User [user ]
118
+ p = self .P [u ]
118
119
for context in self .SPPMI [user ]:
119
120
v = self .dao .all_User [context ]
120
121
m = self .SPPMI [user ][context ]
You can’t perform that action at this time.
0 commit comments