Package unifeat.result
Class Results
java.lang.Object
unifeat.result.Results
This java class is used to implement various methods for showing the results
in the result panel.
- Author:
- Sina Tabakhi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Computes the average values of all criteria over number of runsvoid
computePerformanceMeasures
(int i, int j) Computes the performance measures based on given classifiervoid
This method creates a text file of the subsets of selected featuresReturns the performance measures of the obtained resultvoid
setCurrentFeatureValues
(double[] currentFeatureValues) Sets the values of each feature in the current run over given subset of selected featuresvoid
setCurrentSelectedSubset
(int i, int j, int[] currentSelectedSubset) Sets the subset of selected features in the current runvoid
setTime
(double value) Sets the execution time of the feature selection method in the current run.toString()
This method returns an empty stringtoString
(ResultType type) This method converts the obtained results over all runs to the string based on result type for showing in the result panel.
-
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 datasetnumRuns
- numbers of runs of the feature selection methodnumSelectedSubsets
- numbers of selected feature subsetsprojectPath
- the path of the projectmethodName
- the name of given feature selection methodclassifierName
- the name of given classifierselectedEvaluationClassifierPanel
- panel of the selected classifier contained the parameter values
-
-
Method Details
-
toString
This method returns an empty string -
toString
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 methodj
- the current subset of the selected featurescurrentSelectedSubset
- 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 methodj
- the current subset of the selected features
-
computeAverageValuesOfPerformanceMeasures
public void computeAverageValuesOfPerformanceMeasures()Computes the average values of all criteria over number of runs -
getPerformanceMeasures
Returns the performance measures of the obtained result- Returns:
- measures of the PerformanceMeasures class
-