All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.OneR
R.C. Holte (1993). Very simple classification rules perform well on most commonly used datasets. Machine Learning, Vol. 11, pp. 63-91.
Valid options are:
-B num
Specify the minimum number of objects in a bucket (default: 6).
public OneR()
public double classifyInstance(Instance inst)
inst - the instance to be classified
public void buildClassifier(Instances instances) throws java.lang.Exception
instances - the instances to be used for building the classifier
public weka.classifiers.OneR.OneRRule newRule(Attribute attr,
Instances data) throws java.lang.Exception
attr - the attribute to branch on
data - the data to be used for creating the rule
public weka.classifiers.OneR.OneRRule newNominalRule(Attribute attr,
Instances data,
int missingValueCounts[]) throws java.lang.Exception
attr - the attribute to branch on
data - the data to be used for creating the rule
missingValueCounts - to be filled in
public weka.classifiers.OneR.OneRRule newNumericRule(Attribute attr,
Instances data,
int missingValueCounts[]) throws java.lang.Exception
attr - the attribute to branch on
data - the data to be used for creating the rule
missingValueCounts - to be filled in
public java.util.Enumeration listOptions()
public void setOptions(java.lang.String options[]) throws java.lang.Exception
-B num
Specify the minimum number of objects in a bucket (default: 6).
options - the list of options as an array of strings
public java.lang.String[] getOptions()
public java.lang.String toString()
public int getMinBucketSize()
public void setMinBucketSize(int v)
v - Value to assign to minBucketSize.
public static void main(java.lang.String argv[])
All Packages Class Hierarchy This Package Previous Next Index WEKA's home