Skip to main content
. 2011 Nov 18;12:450. doi: 10.1186/1471-2105-12-450

Table 1.

Computing feature supports using Random KNN bidirectional voting

/* Generate n KNN classifiers using m features and compute accuracy acc for each KNN */
/* Return support for each feature */
p ← number of features in the data set;
m ← number of features for each KNN;
r ← number of KNN classifiers;
Fi ← feature list for ith KNN classifier;
C ← build r KNNs using m feature for each;
Perform query from base data sets using each KNN;
Compare predicted values with observed values;
Calculate accuracy, acc, for each base KNN;
Fi=1rFi; {F is the list of features that appeared in r KNN classifiers};
for each f F do
C(f) ← list of KNN classifiers that used f;
support(f)1|C(f)|knnC(f)acc(knn);
end for