Skip to main content
. Author manuscript; available in PMC: 2014 Jun 5.
Published in final edited form as: Proc SIAM Int Conf Data Min. 2013;2013:342–349. doi: 10.1137/1.9781611972832.38

Algorithm 2 Drug resistance classification algorithm

1: repeat
2:  Randomly choose m vectors from SQV group, the rest n being training data
3:  Construct dictionary J using Algorithm 1
4:  Randomly choose m vectors from none group, the rest n being training data
5:  Construct dictionary K using Algorithm 1
6: for each vector v in testing data do
7:    computing the sparse representation of v using both dictionaries J and K
8:    computing the representation errors using the two dictionaries
9:   if the error of using J is larger then
10:    v is resistant to SQV
11:   else
12:    v is NOT resistant to SQV
13:   end if
14: end for
15:  Compute the confusion matrix
16: until For 9 times