prtFeatSelStatic Static feature selection object.
FEATSEL = prtFeatSelStatic creates a static feature selection
object.
FEATSEL = prtFeatSelStatic('selectedFeatures', FEATURES) creates a
static feature selection object with the selectedFeatures parameter
set to FEATURES.
A static feature selction object selects the features specified by
the selectedFeatures parameter.
Example:
dataSet = prtDataGenIris; % Load a data set with 4 features
StaticFeatSel = prtFeatSelStatic; % Create a static feature
% selection object.
StaticFeatSel.selectedFeatures = [1 3]; % Choose the first and
% third feature
% Training is not necessary for a static feature selection object,
% the following command has no effect.
StaticFeatSel = StaticFeatSel.train(dataSet);
dataSetReduced = StaticFeatSel.run(dataSet); %Run the feature
%selection
explore(dataSetReduced);