All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.meta.CVParameterSelection
R. Kohavi (1995). Wrappers for Performance Enhancement and Oblivious Decision Graphs. PhD Thesis. Department of Computer Science, Stanford University.
Valid options are:
-D
Turn on debugging output.
-W classname
Specify the full class name of classifier to perform cross-validation
selection on.
-X num
Number of folds used for cross validation (default 10).
-S seed
Random number seed (default 1).
-P "N 1 5 10"
Sets an optimisation parameter for the classifier with name -N,
lower bound 1, upper bound 5, and 10 optimisation steps.
The upper bound may be the character 'A' or 'I' to substitute
the number of attributes or instances in the training data,
respectively.
This parameter may be supplied more than once to optimise over
several classifier options simultaneously.
Options after -- are passed to the designated sub-classifier.
public CVParameterSelection()
public java.util.Enumeration listOptions()
public void setOptions(java.lang.String options[]) throws java.lang.Exception
-D
Turn on debugging output.
-W classname
Specify the full class name of classifier to perform cross-validation
selection on.
-X num
Number of folds used for cross validation (default 10).
-S seed
Random number seed (default 1).
-P "N 1 5 10"
Sets an optimisation parameter for the classifier with name -N,
lower bound 1, upper bound 5, and 10 optimisation steps.
The upper bound may be the character 'A' or 'I' to substitute
the number of attributes or instances in the training data,
respectively.
This parameter may be supplied more than once to optimise over
several classifier options simultaneously.
Options after -- are passed to the designated sub-classifier.
options - the list of options as an array of strings
public java.lang.String[] getOptions()
public void buildClassifier(Instances instances) throws java.lang.Exception
instances - set of instances serving as training data
public double classifyInstance(Instance instance) throws java.lang.Exception
instance - the instance to be classified
public void setSeed(int seed)
seed - the random number seed
public int getSeed()
public void addCVParameter(java.lang.String cvParam) throws java.lang.Exception
cvParam - the string representation of a scheme parameter. The
format is: public java.lang.String getCVParameter(int index)
public void setDebug(boolean debug)
debug - true if debug output should be printed
public boolean getDebug()
public int getNumFolds()
public void setNumFolds(int newNumFolds)
newNumFolds - the number of folds used for cross-validation.
public void setClassifier(Classifier newClassifier)
newClassifier - the Classifier to use.
public Classifier getClassifier()
public java.lang.String toString()
public java.lang.String toSummaryString()
public static void main(java.lang.String argv[])
argv - the options
All Packages Class Hierarchy This Package Previous Next Index WEKA's home