weka.classifiers.rules
Class Ridor.NominalAntd

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


Field Summary
protected  double accu
           
private  double[] accurate
           
protected  double accuRate
           
protected  Attribute att
           
protected  double cover
           
private  double[] coverage
           
private  double[] infoGain
           
protected  double maxInfoGain
           
protected  double value
           
 
Constructor Summary
Ridor.NominalAntd(Attribute a)
           
 
Method Summary
 double getAccu()
           
 double getAccuRate()
           
 Attribute getAttr()
           
 double getAttrValue()
           
 double getCover()
           
 double getMaxInfoGain()
           
 boolean isCover(Instance inst)
          Whether the instance is covered by this antecedent
 Instances[] splitData(Instances data, 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

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

Ridor.NominalAntd

public Ridor.NominalAntd(Attribute a)
Method Detail

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 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()