|
Algorithm 1 Ensemble Feature Selection with SHAP Refinement |
Input: Dataset D with features X, labels y, threshold
Normalize X and split into train/test sets
function Fitness(solution)
Convert to binary mask
if no feature selected then
return
end if
Train SVM on selected features
return accuracy
end function
Define a binary optimization problem with Fitness as objective
Run HHO, mGTO, and ZOA to generate feature masks
Apply majority voting to obtain ensemble mask
Train SVM using features selected by ensemble mask
Compute SHAP values; rank features by mean absolute value
Select top features achieving cumulative SHAP contribution
Output: Optimized feature subset
|