Skip to main content
. 2016 Jun 14;16(6):877. doi: 10.3390/s16060877
Procedure 1 Build PM
1: T ▷ Start with an empty train set
2: for c in C do ▷ For each class
3:      datatsubset(τt,c) τt is the target user’s train set
4:      dataothersubset(instances(Uother),c)
5:      dataalldatatdataother
6:      Cluster dataall using k-means for k=2,,UpperBound and select the optimal k according to some clustering quality index.
7:      Sarg maxgGdatatg G is the set of the resulting k groups
8:      TTSdatat
9: end for
10: weight(T)    ▷ Assign a weight to each instance such that the importance of τt increases as more training data of the target user is available.
11: Build model using training set T.