weka.experiment
Class SemiSupClassifierSplitEvaluator

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

public class SemiSupClassifierSplitEvaluator
extends ClassifierSplitEvaluator
implements SemiSupSplitEvaluator

A SplitEvaluator that produces results for a semi-supervised classification scheme on a nominal class attribute. Currently this evaluator collects the statistics as for purely supervised classifiers. However, it can be modified to collect more statistics specific to semi-supervised learning. -W classname
Specify the full class name of the classifier to evaluate.

-C class index
The index of the class for which IR statistics are to be output. (default 1)

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
SemiSupClassifierSplitEvaluator()
           
 
Method Summary
 java.lang.Object[] getResult(Instances train, Instances unlabeled, Instances test)
          Gets the results for the supplied train and test datasets.
 
Methods inherited from class weka.experiment.ClassifierSplitEvaluator
classifierTipText, enumerateMeasures, getClassForIRStatistics, getClassifier, getKey, getKeyNames, getKeyTypes, getMeasure, getOptions, getRawResultOutput, getResult, getResultNames, getResultTypes, globalInfo, listOptions, setAdditionalMeasures, setClassForIRStatistics, setClassifier, setClassifierName, setOptions, toString, updateOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemiSupClassifierSplitEvaluator

public SemiSupClassifierSplitEvaluator()
Method Detail

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 unlabeled 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