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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    PerformanceMeasures(int numRuns, int numSelectedSubsets)
    Initializes the parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Computes the average values of all criteria over number of runs
    double[][]
    Returns the accuracy values of the feature selection method
    double[][]
    Returns the average values of the accuracy of the feature selection method over number of runs
    double[][]
    Returns the average values of the error rate of the feature selection method over number of runs
    double[][]
    Returns the average values of the execution time of the feature selection method over number of runs
    double[][]
    Returns the error rate values of the feature selection method
    double[][]
    Returns the execution time values of the feature selection method
    void
    setCriteria(int i, int j, Criteria criteria)
    Sets the obtained criteria values from feature selection method

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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