weka.classifiers.rules
Class JRip.NominalAntd

java.lang.Object
  extended byweka.classifiers.rules.JRip.Antd
      extended byweka.classifiers.rules.JRip.NominalAntd
All Implemented Interfaces:
Copyable, java.io.Serializable, WeightedInstancesHandler
Enclosing class:
JRip

private class JRip.NominalAntd
extends JRip.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
           
protected  double maxInfoGain
           
protected  double value
           
 
Constructor Summary
JRip.NominalAntd(Attribute a)
           
 
Method Summary
 java.lang.Object copy()
          Implements Copyable
 boolean covers(Instance inst)
          Whether the instance is covered by this antecedent
 double getAccu()
           
 double getAccuRate()
           
 Attribute getAttr()
           
 double getAttrValue()
           
 double getCover()
           
 double getMaxInfoGain()
           
 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

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

JRip.NominalAntd

public JRip.NominalAntd(Attribute a)
Method Detail

copy

public java.lang.Object copy()
Implements Copyable

Specified by:
copy in interface Copyable
Specified by:
copy in class JRip.Antd

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 JRip.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

covers

public boolean covers(Instance inst)
Whether the instance is covered by this antecedent

Specified by:
covers in class JRip.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 JRip.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()