|
Algorithm 1 F-TEST and RNCA. |
Procedure F-TEST(, ): training dataset
01: return that produces weighted feature vectors using F-test
02: select threshold
End procedure
Procedure RNCA (, ): a training dataset
01: partition training dataset into 5 folds
for do: where n is the number of the line space
02: : tuning using 5-fold cross-validation
for do:
03: call NCA(, , ): train NCA for regularization parameter
04: compute : record loss values
endfor
endfor
05: = mean(): compute average loss value
06: : find best
07: call NCA(, , , ): =
08: return that produces weighted feature vectors
09: select (threshold) = 3; fixed threshold
End procedure
|