weka.classifiers.rules.car
Class CarClassifier

java.lang.Object
  extended by weka.classifiers.AbstractClassifier
      extended by weka.classifiers.rules.car.CarClassifier
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Classifier, CapabilitiesHandler, OptionHandler, RevisionHandler
Direct Known Subclasses:
JCBA, WeightedClassifier

public abstract class CarClassifier
extends AbstractClassifier

Abstract class that has to be implemented by all classifiers for class association rules

Version:
$Revision: 8108 $
Author:
Stefan Mutter
See Also:
Serialized Form

Constructor Summary
CarClassifier()
           
 
Method Summary
 FastVector sortAttributes(Instances instances, Instance instance, CrTree pruneTree)
          Sorts the items accoridng to the sorting in the CrTree where the mined rules are stored.
 
Methods inherited from class weka.classifiers.AbstractClassifier
classifyInstance, debugTipText, distributionForInstance, forName, getCapabilities, getDebug, getOptions, getRevision, listOptions, makeCopies, makeCopy, runClassifier, setDebug, setOptions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface weka.classifiers.Classifier
buildClassifier
 

Constructor Detail

CarClassifier

public CarClassifier()
Method Detail

sortAttributes

public FastVector sortAttributes(Instances instances,
                                 Instance instance,
                                 CrTree pruneTree)
                          throws java.lang.Exception
Sorts the items accoridng to the sorting in the CrTree where the mined rules are stored. In a CrTree the more frequent items are closer to the root.

Parameters:
instances - the instance for which rules have been mined
instance - the instance under consideration
pruneTree - the CrTree where the rules are stored.
Returns:
the sorted item
Throws:
java.lang.Exception - if it cannot be sorted