Class MSVM_RFE
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.embedded.EmbeddedApproach
unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
unifeat.featureSelection.embedded.SVMBasedMethods.MSVM_RFE
This java class is used to implement MSVM_RFE method for binary
classification based on SVM_RFE method (support vector machine method based
on recursive feature elimination) in which multiple linear SVMs trained on
subsamples of the original training data. K-fold cross validation is used as
the resampling method.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
classLabelInTrainSet, kernelType, parameterC, TEMP_PATHFields inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
classLabel, nameFeatures, PROJECT_PATHFields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet -
Constructor Summary
ConstructorsConstructorDescriptionInitializes the parametersMSVM_RFE(String path, SVMKernelType kernelType, double c, int kFoldValue, int numRun) Initializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionprotected double[][]buildSVM_KFoldCrossValidation(int[] selectedFeature) Generates binary classifiers (SVM by applying k-fold cross validation resampling strategy) using input data and based on selected feature subset.voidStarts the feature selection process by multiple support vector machine method based on recursive feature elimination using k-fold cross validation resampling strategy (MSVM_RFE)validate()This method returns the potential errors in the input parameters.Methods inherited from class unifeat.featureSelection.embedded.SVMBasedMethods.SVMBasedMethods
buildSVM_OneAgainstOne, buildSVM_OneAgainstRest, createClassLabelMethods inherited from class unifeat.featureSelection.embedded.EmbeddedApproach
loadDataSet, loadDataSet, newMethod, originalFeatureSetMethods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, setNumSelectedFeature
-
Constructor Details
-
MSVM_RFE
Initializes the parameters- Parameters:
arguments- array of parameters contains (path,kernelType,Parameter c,kFoldValue,numRun) in whichpathis the path of the project,kernelTypeis the type of kernel to use,Parameter cis the complexity parameter C,kFoldValueis the number of subsamples in k-fold cross validation, andnumRunis the number of multiple runs of k-fold CV
-
MSVM_RFE
Initializes the parameters- Parameters:
path- the path of the projectkernelType- the type of kernel to usec- the complexity parameter CkFoldValue- the number of subsamples in k-fold cross validationnumRun- the number of multiple runs of k-fold CV
-
-
Method Details
-
buildSVM_KFoldCrossValidation
protected double[][] buildSVM_KFoldCrossValidation(int[] selectedFeature) Generates binary classifiers (SVM by applying k-fold cross validation resampling strategy) using input data and based on selected feature subset.- Parameters:
selectedFeature- an array of indices of the selected feature subset- Returns:
- an array of the weights of features
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by multiple support vector machine method based on recursive feature elimination using k-fold cross validation resampling strategy (MSVM_RFE)- Specified by:
evaluateFeaturesin classFeatureSelection
-
validate
This method returns the potential errors in the input parameters.- Overrides:
validatein classFeatureSelection- Returns:
- a string contains the information about incorrect parameters
-