public class CrossValidationSplitResultProducer extends CrossValidationResultProducer
-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.
DATASET_FIELD_NAME, FOLD_FIELD_NAME, RUN_FIELD_NAME, TIMESTAMP_FIELD_NAME
Constructor and Description |
---|
CrossValidationSplitResultProducer() |
Modifier and Type | Method and Description |
---|---|
void |
doRun(int run)
Gets the results for a specified run number.
|
void |
doRunKeys(int run)
Gets the keys for a specified run number.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this result producer
|
java.lang.String |
toString()
Gets a text descrption of the result producer.
|
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, setSplitEvaluator, splitEvaluatorTipText
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public java.lang.String globalInfo()
globalInfo
in class CrossValidationResultProducer
public void doRunKeys(int run) throws java.lang.Exception
doRunKeys
in interface ResultProducer
doRunKeys
in class CrossValidationResultProducer
run
- the run number to get keys for.java.lang.Exception
- if a problem occurs while getting the keyspublic void doRun(int run) throws java.lang.Exception
doRun
in interface ResultProducer
doRun
in class CrossValidationResultProducer
run
- the run number to get results for.java.lang.Exception
- if a problem occurs while getting the resultspublic java.lang.String toString()
toString
in class CrossValidationResultProducer
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class CrossValidationResultProducer