This MATLAB code implements the binary Grass hopper optimization algorithm to select the features and train with KNN
The description of this can be checked at https://free-thesis.com/product/feature-selection-and-classification-by-hybrid-optimization/