weka.classifiers.rules
Class Ridor.NumericAntd
java.lang.Object
weka.classifiers.rules.Ridor.Antd
weka.classifiers.rules.Ridor.NumericAntd
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- Ridor
- private class Ridor.NumericAntd
- extends Ridor.Antd
The antecedent with numeric attribute
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
splitPoint
private double splitPoint
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.NumericAntd
public Ridor.NumericAntd(Attribute a)
getSplitPoint
public double getSplitPoint()
splitData
public Instances[] splitData(Instances insts,
double defAcRt,
double cl)
- Implements the splitData function.
This procedure is to split the data into two bags according
to the information gain of the numeric attribute value
The maximum infoGain is also calculated.
- Specified by:
splitData
in class Ridor.Antd
- Parameters:
insts
- 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()