All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object
|
+----weka.classifiers.Classifier
|
+----weka.classifiers.rules.Ridor
There are five inner classes defined in this class.
The first is Ridor_node, which implements one node in the Ridor tree. It's basically
composed of a default class and a set of exception rules to the default class.
The second inner class is RidorRule, which implements a single exception rule
using REP.
The last three inner classes are only used in RidorRule. They are Antd, NumericAntd
and NominalAntd, which all implement a single antecedent in the RidorRule.
The Antd class is an abstract class, which has two subclasses, NumericAntd and
NominalAntd, to implement the corresponding abstract functions. These two subclasses
implement the functions related to a antecedent with a nominal attribute and a numeric
attribute respectively.
-F number
Set number of folds for reduced error pruning.
public Ridor()
public void buildClassifier(Instances instances) throws java.lang.Exception
data - the training data
public double classifyInstance(Instance datum)
instance - the instance to be classified
public java.util.Enumeration listOptions()
-F number
Set number of folds for reduced error pruning. One fold is
used as the pruning set. (Default: 3)
-S number
Set number of shuffles for randomization. (Default: 10)
-A
Set flag of whether use the error rate of all the data to select
the default class in each step. If not set, the learner will only use
the error rate in the pruning data
-M
Set flag of whether use the majority class as the default class
in each step instead of choosing default class based on the error rate
(if the flag is not set)
-N number
Set the minimal weights of instances within a split.
(Default: 2)
public void setOptions(java.lang.String options[]) throws java.lang.Exception
options - the list of options as an array of strings
public java.lang.String[] getOptions()
public void setFolds(int fold)
public int getFolds()
public void setShuffle(int sh)
public int getShuffle()
public void setSeed(int s)
public int getSeed()
public void setWholeDataErr(boolean a)
public boolean getWholeDataErr()
public void setMajorityClass(boolean m)
public boolean getMajorityClass()
public void setMinNo(double m)
public double getMinNo()
public java.util.Enumeration enumerateMeasures()
public double getMeasure(java.lang.String additionalMeasureName)
measureName - the name of the measure to query for its value
public java.lang.String toString()
public static void main(java.lang.String args[])
args - the options for the classifier
All Packages Class Hierarchy This Package Previous Next Index WEKA's home