Class Results

java.lang.Object
unifeat.result.Results

public class Results extends Object
This java class is used to implement various methods for showing the results in the result panel.
Author:
Sina Tabakhi
  • Constructor Details

    • Results

      public Results(DatasetInfo data, int numRuns, int numSelectedSubsets, String projectPath, Object methodName, Object classifierName, Object selectedEvaluationClassifierPanel)
      Initializes the parameters
      Parameters:
      data - the data class contains all information of the input dataset
      numRuns - numbers of runs of the feature selection method
      numSelectedSubsets - numbers of selected feature subsets
      projectPath - the path of the project
      methodName - the name of given feature selection method
      classifierName - the name of given classifier
      selectedEvaluationClassifierPanel - panel of the selected classifier contained the parameter values
  • Method Details

    • toString

      public String toString()
      This method returns an empty string
      Overrides:
      toString in class Object
      Returns:
      an empty string
    • toString

      public String toString(ResultType type)
      This method converts the obtained results over all runs to the string based on result type for showing in the result panel.
      Parameters:
      type - type of the result
      Returns:
      a string of the result
    • createFeatureFiles

      public void createFeatureFiles()
      This method creates a text file of the subsets of selected features
    • setTime

      public void setTime(double value)
      Sets the execution time of the feature selection method in the current run.
      Parameters:
      value - execution time of the feature selection method
    • setCurrentSelectedSubset

      public void setCurrentSelectedSubset(int i, int j, int[] currentSelectedSubset)
      Sets the subset of selected features in the current run
      Parameters:
      i - the current run of the feature selection method
      j - the current subset of the selected features
      currentSelectedSubset - an array of the indices of the selected features
    • setCurrentFeatureValues

      public void setCurrentFeatureValues(double[] currentFeatureValues)
      Sets the values of each feature in the current run over given subset of selected features
      Parameters:
      currentFeatureValues - an array of the values of each feature
    • computePerformanceMeasures

      public void computePerformanceMeasures(int i, int j)
      Computes the performance measures based on given classifier
      Parameters:
      i - the current run of the feature selection method
      j - the current subset of the selected features
    • computeAverageValuesOfPerformanceMeasures

      public void computeAverageValuesOfPerformanceMeasures()
      Computes the average values of all criteria over number of runs
    • getPerformanceMeasures

      public PerformanceMeasures getPerformanceMeasures()
      Returns the performance measures of the obtained result
      Returns:
      measures of the PerformanceMeasures class