weka.experiment
Class SemiSupClassifierSplitEvaluator
java.lang.Object
weka.experiment.ClassifierSplitEvaluator
weka.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
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 |
SemiSupClassifierSplitEvaluator
public SemiSupClassifierSplitEvaluator()
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