weka.experiment
Class EnsembleClassifierSplitEvaluator

java.lang.Object
  extended byweka.experiment.ClassifierSplitEvaluator
      extended byweka.experiment.EnsembleClassifierSplitEvaluator
All Implemented Interfaces:
AdditionalMeasureProducer, OptionHandler, SemiSupSplitEvaluator, java.io.Serializable, SplitEvaluator

public class EnsembleClassifierSplitEvaluator
extends ClassifierSplitEvaluator
implements SemiSupSplitEvaluator

A SplitEvaluator that produces results for an ensemble classification scheme

See Also:
Serialized Form

Field Summary
 
Fields inherited from class weka.experiment.ClassifierSplitEvaluator
m_AdditionalMeasures, m_Classifier, m_ClassifierOptions, m_ClassifierVersion, m_doesProduce, m_numberAdditionalMeasures, m_result
 
Constructor Summary
EnsembleClassifierSplitEvaluator()
           
 
Method Summary
 java.lang.Object[] getResult(Instances train, Instances test)
          Gets the results for the supplied train and test datasets.
 java.lang.Object[] getResult(Instances train, Instances unlabeled, Instances test)
          Gets the results for the supplied train and test datasets.
 java.lang.String[] getResultNames()
          Gets the names of each of the result columns produced for a single run.
 java.lang.Object[] getResultTypes()
          Gets the data types of each of the result columns produced for a single run.
 java.lang.String globalInfo()
          Returns a string describing this split evaluator
 java.lang.String toString()
          Returns a text description of the split evaluator.
 
Methods inherited from class weka.experiment.ClassifierSplitEvaluator
classifierTipText, enumerateMeasures, getClassForIRStatistics, getClassifier, getKey, getKeyNames, getKeyTypes, getMeasure, getOptions, getRawResultOutput, listOptions, setAdditionalMeasures, setClassForIRStatistics, setClassifier, setClassifierName, setOptions, updateOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnsembleClassifierSplitEvaluator

public EnsembleClassifierSplitEvaluator()
Method Detail

globalInfo

public java.lang.String globalInfo()
Returns a string describing this split evaluator

Overrides:
globalInfo in class ClassifierSplitEvaluator
Returns:
a description of the split evaluator suitable for displaying in the explorer/experimenter gui

getResultTypes

public java.lang.Object[] getResultTypes()
Gets the data types of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.

Specified by:
getResultTypes in interface SplitEvaluator
Overrides:
getResultTypes in class ClassifierSplitEvaluator
Returns:
an array containing objects of the type of each result column. The objects should be Strings, or Doubles.

getResultNames

public java.lang.String[] getResultNames()
Gets the names of each of the result columns produced for a single run. The number of result fields must be constant for a given SplitEvaluator.

Specified by:
getResultNames in interface SplitEvaluator
Overrides:
getResultNames in class ClassifierSplitEvaluator
Returns:
an array containing the name of each result column

getResult

public java.lang.Object[] getResult(Instances train,
                                    Instances unlabeled,
                                    Instances test)
                             throws java.lang.Exception
Gets the results for the supplied train and test datasets.

Specified by:
getResult in interface SemiSupSplitEvaluator
Parameters:
train - the training Instances.
unlabeled - the unlabled Instances.
test - the testing Instances.
Returns:
the results stored in an array. The objects stored in the array may be Strings, Doubles, or null (for the missing value).
Throws:
java.lang.Exception - if a problem occurs while getting the results

getResult

public java.lang.Object[] getResult(Instances train,
                                    Instances test)
                             throws java.lang.Exception
Gets the results for the supplied train and test datasets.

Specified by:
getResult in interface SplitEvaluator
Overrides:
getResult in class ClassifierSplitEvaluator
Parameters:
train - the training Instances.
test - the testing Instances.
Returns:
the results stored in an array. The objects stored in the array may be Strings, Doubles, or null (for the missing value).
Throws:
java.lang.Exception - if a problem occurs while getting the results

toString

public java.lang.String toString()
Returns a text description of the split evaluator.

Overrides:
toString in class ClassifierSplitEvaluator
Returns:
a text description of the split evaluator.