Package weka.classifiers.rules
Class JRip.NominalAntd
- java.lang.Object
-
- weka.classifiers.rules.JRip.Antd
-
- weka.classifiers.rules.JRip.NominalAntd
-
- All Implemented Interfaces:
java.io.Serializable,Copyable,RevisionHandler,WeightedInstancesHandler
- Enclosing class:
- JRip
public class JRip.NominalAntd extends JRip.Antd
The antecedent with nominal attribute- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NominalAntd(Attribute a)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectcopy()Implements Copyablebooleancovers(Instance inst)Whether the instance is covered by this antecedentjava.lang.StringgetRevision()Returns the revision string.Instances[]splitData(Instances data, double defAcRt, double cl)Implements the splitData function.java.lang.StringtoString()Prints this antecedent-
Methods inherited from class weka.classifiers.rules.JRip.Antd
getAccu, getAccuRate, getAttr, getAttrValue, getCover, getMaxInfoGain
-
-
-
-
Constructor Detail
-
NominalAntd
public NominalAntd(Attribute a)
Constructor
-
-
Method Detail
-
copy
public java.lang.Object copy()
Implements Copyable
-
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.
-
covers
public boolean covers(Instance inst)
Whether the instance is covered by this antecedent
-
toString
public java.lang.String toString()
Prints this antecedent
-
getRevision
public java.lang.String getRevision()
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Overrides:
getRevisionin classJRip.Antd- Returns:
- the revision
-
-