ace.datatypes
Class CrossValidationResults

java.lang.Object
  extended by ace.datatypes.CrossValidationResults

public class CrossValidationResults
extends java.lang.Object

Holds the results of a cross validation.

Each cross validation will have one CrossValidationResults object. Every Experimenter will have an array of arrays of CrossValidationResults objects, one object for each cross validation of each classifier for each type of dimensionality reduction. This class has one method that is called by Experimenter to instantiate an array of CrossValidationResults objects. This method will be called once for each type of dimensionality reduction and will create an array with a length equal to the number of classifiers being tested. When a single cross validation is being performed, Coordinator creates an array of CrossValidationResults objects of size 1 to be passed to CrossValidator.


Field Summary
 java.lang.String classifier_descriptions
          The type of classifier or classification algorithm being used for this cross validation.
 double cross_val_times
          The time (in minutes) that it took for the cross validation to finish.
 java.lang.String cross_validation_confusion_matrices
          A table displaying the distribution of correct and incorrect instances.
 double error_rates
          The average error rate of this cross validation.
 double standard_deviation
          The standard deviation of error rates across folds.
 TrainedModel trained
          The serializable object containing reference to the Weka objects that were use for classification in this cross validation.
 
Constructor Summary
CrossValidationResults()
           
 
Method Summary
static CrossValidationResults[] generateArray(java.util.LinkedList<java.lang.String> classifier_descriptions_list)
          Instantiates an array of CrossValidationResults objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trained

public TrainedModel trained
The serializable object containing reference to the Weka objects that were use for classification in this cross validation. AttributeSelection field may be null when experimenting.


cross_validation_confusion_matrices

public java.lang.String cross_validation_confusion_matrices
A table displaying the distribution of correct and incorrect instances.


classifier_descriptions

public java.lang.String classifier_descriptions
The type of classifier or classification algorithm being used for this cross validation.


error_rates

public double error_rates
The average error rate of this cross validation.


cross_val_times

public double cross_val_times
The time (in minutes) that it took for the cross validation to finish.


standard_deviation

public double standard_deviation
The standard deviation of error rates across folds.

Constructor Detail

CrossValidationResults

public CrossValidationResults()
Method Detail

generateArray

public static CrossValidationResults[] generateArray(java.util.LinkedList<java.lang.String> classifier_descriptions_list)
Instantiates an array of CrossValidationResults objects. Used during Experimentation when many different cross validations of the same instances are compared.

Parameters:
classifier_descriptions_list - A LinkedList of Strings describing each classifier being used in the experimentation. The length of this list will also be the number of classifiers that are being tested in this experimentation. There will be as many cross validations as there are classifiers therefore the generated array of CrossValidationResults will be the same as the size of this list.
Returns:
An array of CrossValidationResults objects. Only classifier_descriptions of field CrossValidationResults is initialized.