Class PerformanceMeasures
java.lang.Object
unifeat.result.performanceMeasure.PerformanceMeasures
This java class is used to save all performance measure values obtained from
different runs of given feature selection method.
- Author:
- Sina Tabakhi
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPerformanceMeasures(int numRuns, int numSelectedSubsets) Initializes the parameters -
Method Summary
Modifier and TypeMethodDescriptionvoidComputes the average values of all criteria over number of runsdouble[][]Returns the accuracy values of the feature selection methoddouble[][]Returns the average values of the accuracy of the feature selection method over number of runsdouble[][]Returns the average values of the error rate of the feature selection method over number of runsdouble[][]Returns the average values of the execution time of the feature selection method over number of runsdouble[][]Returns the error rate values of the feature selection methoddouble[][]Returns the execution time values of the feature selection methodvoidsetCriteria(int i, int j, Criteria criteria) Sets the obtained criteria values from feature selection method
-
Field Details
-
measures
-
averageValues
-
-
Constructor Details
-
PerformanceMeasures
public PerformanceMeasures(int numRuns, int numSelectedSubsets) Initializes the parameters- Parameters:
numRuns- numbers of runs of the feature selection methodnumSelectedSubsets- numbers of selected feature subsets
-
-
Method Details
-
setCriteria
Sets the obtained criteria values from feature selection method- Parameters:
i- the current run of the feature selection methodj- the current subset of the selected featurescriteria- values obtained from the feature selection method
-
computeAverageValues
public void computeAverageValues()Computes the average values of all criteria over number of runs -
getAccuracyValues
public double[][] getAccuracyValues()Returns the accuracy values of the feature selection method- Returns:
- an array of the accuracy values
-
getErrorRateValues
public double[][] getErrorRateValues()Returns the error rate values of the feature selection method- Returns:
- an array of the error rate values
-
getTimeValues
public double[][] getTimeValues()Returns the execution time values of the feature selection method- Returns:
- an array of the execution time values
-
getAverageAccuracyValues
public double[][] getAverageAccuracyValues()Returns the average values of the accuracy of the feature selection method over number of runs- Returns:
- an array of the average values of the accuracy
-
getAverageErrorRateValues
public double[][] getAverageErrorRateValues()Returns the average values of the error rate of the feature selection method over number of runs- Returns:
- an array of the average values of the error rate
-
getAverageTimeValues
public double[][] getAverageTimeValues()Returns the average values of the execution time of the feature selection method over number of runs- Returns:
- an array of the average values of the execution time
-