public class MekaCrossValidationSplitResultProducer extends weka.experiment.CrossValidationSplitResultProducer implements MekaResultProducer
Valid options are:
-X <number of folds> The number of folds to use for the cross-validation. (default 10)
-D Save raw split evaluator output.
-O <file/directory name/path> The filename where raw output will be stored. If a directory name is specified then then individual outputs will be gzipped, otherwise all output will be zipped to the named file. Use in conjuction with -D. (default splitEvalutorOut.zip)
-W <class name> The full class name of a SplitEvaluator. eg: weka.experiment.ClassifierSplitEvaluator
Options specific to split evaluator weka.experiment.ClassifierSplitEvaluator:
-W <class name> The full class name of the classifier. eg: weka.classifiers.bayes.NaiveBayes
-C <index> The index of the class for which IR statistics are to be output. (default 1)
-I <index> The index of an attribute to output in the results. This attribute should identify an instance in order to know which instances are in the test set of a cross validation. if 0 no output (default 0).
-P Add target and prediction columns to the result for each fold.
Options specific to classifier weka.classifiers.rules.ZeroR:
-D If set, classifier is run in debug mode and may output additional info to the consoleAll options after -- will be passed to the split evaluator.
Constructor and Description |
---|
MekaCrossValidationSplitResultProducer()
Initializes the producer.
|
Modifier and Type | Method and Description |
---|---|
void |
doRun(int run)
Gets the results for a specified run number.
|
java.lang.String |
getRevision()
Returns the revision string.
|
int |
getTotalNumClasses()
Returns the overal number of classes.
|
void |
setSplitEvaluator(weka.experiment.SplitEvaluator newSplitEvaluator)
Set the SplitEvaluator.
|
void |
setTotalNumClasses(int value)
Sets the overal number of classes.
|
doRunKeys, globalInfo, toString
enumerateMeasures, getCompatibilityState, getKeyNames, getKeyTypes, getMeasure, getNumFolds, getOptions, getOutputFile, getRawOutput, getResultNames, getResultTypes, getSplitEvaluator, getTimestamp, listOptions, main, numFoldsTipText, outputFileTipText, postProcess, preProcess, rawOutputTipText, setAdditionalMeasures, setInstances, setNumFolds, setOptions, setOutputFile, setRawOutput, setResultListener, splitEvaluatorTipText
public MekaCrossValidationSplitResultProducer()
public void setTotalNumClasses(int value)
setTotalNumClasses
in interface MekaResultProducer
value
- the number of classespublic int getTotalNumClasses()
getTotalNumClasses
in interface MekaResultProducer
public void setSplitEvaluator(weka.experiment.SplitEvaluator newSplitEvaluator)
setSplitEvaluator
in class weka.experiment.CrossValidationResultProducer
newSplitEvaluator
- new SplitEvaluator to use.public void doRun(int run) throws java.lang.Exception
doRun
in interface weka.experiment.ResultProducer
doRun
in class weka.experiment.CrossValidationSplitResultProducer
run
- the run number to get results for.java.lang.Exception
- if a problem occurs while getting the resultspublic java.lang.String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.experiment.CrossValidationSplitResultProducer