Class PerformanceMeasures

java.lang.Object
unifeat.result.performanceMeasure.PerformanceMeasures

public class PerformanceMeasures extends Object
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 Details

    • measures

      private Criteria[][] measures
    • averageValues

      private Criteria[] averageValues
  • Constructor Details

    • PerformanceMeasures

      public PerformanceMeasures(int numRuns, int numSelectedSubsets)
      Initializes the parameters
      Parameters:
      numRuns - numbers of runs of the feature selection method
      numSelectedSubsets - numbers of selected feature subsets
  • Method Details

    • setCriteria

      public void setCriteria(int i, int j, Criteria criteria)
      Sets the obtained criteria values from feature selection method
      Parameters:
      i - the current run of the feature selection method
      j - the current subset of the selected features
      criteria - 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