weka.classifiers.rules
Class Ridor.NominalAntd
java.lang.Object
weka.classifiers.rules.Ridor.Antd
weka.classifiers.rules.Ridor.NominalAntd
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- Ridor
- private class Ridor.NominalAntd
- extends Ridor.Antd
The antecedent with nominal attribute
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
accurate
private double[] accurate
coverage
private double[] coverage
infoGain
private double[] infoGain
att
protected Attribute att
value
protected double value
maxInfoGain
protected double maxInfoGain
accuRate
protected double accuRate
cover
protected double cover
accu
protected double accu
Ridor.NominalAntd
public Ridor.NominalAntd(Attribute a)
splitData
public Instances[] splitData(Instances data,
double defAcRt,
double cl)
- Implements the splitData function.
This procedure is to split the data into bags according
to the nominal attribute value
The infoGain for each bag is also calculated.
- Specified by:
splitData
in class Ridor.Antd
- Parameters:
data
- the data to be splitdefAcRt
- the default accuracy rate for datacl
- the class label to be predicted
- Returns:
- the array of data after split
isCover
public boolean isCover(Instance inst)
- Whether the instance is covered by this antecedent
- Specified by:
isCover
in class Ridor.Antd
- Parameters:
inst
- the instance in question
- Returns:
- the boolean value indicating whether the instance is covered
by this antecedent
toString
public java.lang.String toString()
- Prints this antecedent
- Specified by:
toString
in class Ridor.Antd
- Returns:
- a textual description of this antecedent
getAttr
public Attribute getAttr()
getAttrValue
public double getAttrValue()
getMaxInfoGain
public double getMaxInfoGain()
getAccuRate
public double getAccuRate()
getAccu
public double getAccu()
getCover
public double getCover()