weka.classifiers.rules
Class Ridor.NumericAntd

java.lang.Object
  extended byweka.classifiers.rules.Ridor.Antd
      extended byweka.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


Field Summary
protected  double accu
           
protected  double accuRate
           
protected  Attribute att
           
protected  double cover
           
protected  double maxInfoGain
           
private  double splitPoint
           
protected  double value
           
 
Constructor Summary
Ridor.NumericAntd(Attribute a)
           
 
Method Summary
 double getAccu()
           
 double getAccuRate()
           
 Attribute getAttr()
           
 double getAttrValue()
           
 double getCover()
           
 double getMaxInfoGain()
           
 double getSplitPoint()
           
 boolean isCover(Instance inst)
          Whether the instance is covered by this antecedent
 Instances[] splitData(Instances insts, double defAcRt, double cl)
          Implements the splitData function.
 java.lang.String toString()
          Prints this antecedent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Ridor.NumericAntd

public Ridor.NumericAntd(Attribute a)
Method Detail

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 split
defAcRt - the default accuracy rate for data
cl - 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()