Class RSM
java.lang.Object
unifeat.featureSelection.FeatureSelection
unifeat.featureSelection.filter.FilterApproach
unifeat.featureSelection.filter.unsupervised.RSM
This java class is used to implement the random subspace method(RSM) method.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields inherited from class unifeat.featureSelection.FeatureSelection
numClass, numFeatures, numSelectedFeature, selectedFeatureSubset, trainSet -
Constructor Summary
ConstructorsConstructorDescriptionRSM(int sizeSelectedFeatureSubset, int numIter, int size, int threshold, MultivariateMethodType nameApproach) Initializes the parametersInitializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidStarts the feature selection process by random subspace method(RSM)validate()This method returns the potential errors in the input parameters.Methods inherited from class unifeat.featureSelection.filter.FilterApproach
newMethodMethods inherited from class unifeat.featureSelection.FeatureSelection
getSelectedFeatureSubset, loadDataSet, loadDataSet, setNumSelectedFeature
-
Constructor Details
-
RSM
Initializes the parameters- Parameters:
arguments- array of parameters contains (sizeSelectedFeatureSubset,numIter,size,threshold,nameApproach) in whichsizeSelectedFeatureSubsetis the number of selected features,numIteris the number of iteration in the RSM method,sizeis the size of the subspace,thresholdis the number of selected features in each subspace, andnameApproachis the name of the multivariate approach used in the RSM
-
RSM
public RSM(int sizeSelectedFeatureSubset, int numIter, int size, int threshold, MultivariateMethodType nameApproach) Initializes the parameters- Parameters:
sizeSelectedFeatureSubset- the number of selected featuresnumIter- the number of iteration in the RSM methodsize- the size of the subspacethreshold- the number of selected features in each subspacenameApproach- the name of the multivariate approach used in the RSM
-
-
Method Details
-
evaluateFeatures
public void evaluateFeatures()Starts the feature selection process by random subspace method(RSM)- 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
-