Package weka.classifiers.meta
Class LeanMultiScheme
- java.lang.Object
-
- weka.classifiers.AbstractClassifier
-
- weka.classifiers.MultipleClassifiersCombiner
-
- weka.classifiers.RandomizableMultipleClassifiersCombiner
-
- weka.classifiers.meta.MultiScheme
-
- weka.classifiers.meta.LeanMultiScheme
-
- All Implemented Interfaces:
Serializable
,Cloneable
,weka.classifiers.Classifier
,weka.core.BatchPredictor
,weka.core.CapabilitiesHandler
,weka.core.CapabilitiesIgnorer
,weka.core.CommandlineRunnable
,weka.core.OptionHandler
,weka.core.Randomizable
,weka.core.RevisionHandler
public class LeanMultiScheme extends weka.classifiers.meta.MultiScheme
Class for selecting a classifier from among several using cross validation on the training data or the performance on the training data. Performance is measured based on percent correct (classification) or mean-squared error (regression).
Only keeps the best classifier as trained model, never trains the array of specified classifiers. Valid options are:-X <number of folds> Use cross validation for model selection using the given number of folds. (default 0, is to use training error)
-S <num> Random number seed. (default 1)
-B <classifier specification> Full class name of classifier to include, followed by scheme options. May be specified multiple times. (default: "weka.classifiers.rules.ZeroR")
-output-debug-info If set, classifier is run in debug mode and may output additional info to the console
-do-not-check-capabilities If set, classifier capabilities are not checked before classifier is built (use with caution).
Options specific to classifier weka.classifiers.rules.ZeroR:
-output-debug-info If set, classifier is run in debug mode and may output additional info to the console
-do-not-check-capabilities If set, classifier capabilities are not checked before classifier is built (use with caution).
- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LeanMultiScheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description weka.classifiers.Classifier
getClassifier(int index)
Gets a single classifier from the set of available classifiers.String
globalInfo()
Returns a string describing classifier-
Methods inherited from class weka.classifiers.meta.MultiScheme
buildClassifier, classifiersTipText, debugTipText, distributionForInstance, getBestClassifierIndex, getClassifiers, getClassifierSpec, getDebug, getNumFolds, getOptions, getRevision, getSeed, listOptions, main, numFoldsTipText, seedTipText, setClassifiers, setDebug, setNumFolds, setOptions, setSeed, toString
-
Methods inherited from class weka.classifiers.MultipleClassifiersCombiner
getCapabilities, postExecution, preExecution
-
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, classifyInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDoNotCheckCapabilities, setNumDecimalPlaces
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing classifier- Overrides:
globalInfo
in classweka.classifiers.meta.MultiScheme
- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
getClassifier
public weka.classifiers.Classifier getClassifier(int index)
Gets a single classifier from the set of available classifiers.- Overrides:
getClassifier
in classweka.classifiers.meta.MultiScheme
- Parameters:
index
- the index of the classifier wanted- Returns:
- the Classifier
-
-