|
Algorithm 3 main: GP-Based Hybrid Optimal Feature Decision (HOFD). |
01: hybrid = 0;
swich(hybrid)
case 0
02: [score,idx] = RNCA(, )
case 1
03: [score,idx] = F-test(, )
case 2
04: [score,idx] = MRMR(, )
end
Procedure: RNCA(, ): a training dataset
05: partition training dataset into 5 folds
for do: where n is the number of the line space
06: : tuning using 5-fold cross-validation
for do:
07: call NCA(, , ): train NCA for regularization parameter
08: compute : record loss values
endfor
endfor
09: = mean(): compute average lossvalue
10: : find best
11: call NCA(, , , ): =
12: return that produces weighted feature vectors
13: [weights, indices] = sort(w, ’decent’): starting from weighted feature set
14: num = 25; where num is number of features
15: rmse = zeros(1, num);
16: ;
for do:
17: call HOFD( X( :, indices(1:num), y):
18: return (): where is least rmse
19:
;
20: num;
21: num = num − 1;
endfor
22: [index] = min():
23: num = 25;
24: num = num − index + 1;
25: decision : the best feature subset
End procedure
|