Research Article

Multiview Ensemble Method for Detecting Shilling Attacks in Collaborative Recommender Systems

Algorithm 2

Optimal feature set partitioning algorithm.
Input: Bsclassifier, X, k, Vdata
Output:
1  ngetsize(X)
2  
3  for  i=1 to k  do
4  While    do
5  XigetDistinctFea(X,1)
6  
7  end
8  
9  end for
10  for  fea=k+1 to n  do
11  Xcur←getDistinctFea (X, 1)
12  for  i=1 to k  do
13  
14  
15  
16  end for
17  if    then
18  
19  
20  FAt←Fvalt
21  end if
22  end for
23  Xopt
24  Return