Research Article
Multiview Ensemble Method for Detecting Shilling Attacks in Collaborative Recommender Systems
Algorithm 4
Ensemble detection algorithm.
Input: Ttest, BsClassifier , Xallopt,k, Fpre, Vpre | Output: PLabels | 1 PLabels ← | 2 SetBS←selectTopClassiffier(Fpre) | 3 ←getfea(Ttest) | 4 for each u Uul do | 5 count ← 0 | 6 for each pBS do | 7 for i=1 to k do | 8 li ←BsClassifierp(u,Xi) | 9 lp= lp+ liweightp,I | 10 end for | 11 if then | 12 vote=1 | 13 else | 14 vote=-1 | 15 end if | 16 count ←count +vote | 17 end for | 18 if count>0 then | 19 PLabelsu← | 20 Else | 21 PLabelsu← | 22 end if | 23 PLabels ←PLabels PLabelsu | 24 end for | 25 return PLabels |
|