All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.classifiers.j48.ClassifierDecList
java.lang.Object
|
+----weka.classifiers.j48.ClassifierDecList
- public class ClassifierDecList
- extends java.lang.Object
- implements java.io.Serializable
Class for handling a rule (partial tree) for a decision list.
- Version:
- $Revision: 1.5 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
ClassifierDecList(ModelSelection)
- Constructor - just calls constructor of class DecList.
buildDecList(Instances, boolean)
- Builds the partial tree without hold out set.
buildDecList(Instances, Instances, boolean)
- Builds the partial tree with hold out set
classifyInstance(Instance)
- Classifies an instance.
cleanup(Instances)
- Cleanup in order to save memory.
distributionForInstance(Instance)
- Returns class probabilities for a weighted instance.
toString()
- Prints rules.
weight(Instance)
- Returns the weight a rule assigns to an instance.
ClassifierDecList
public ClassifierDecList(ModelSelection toSelectLocModel)
Constructor - just calls constructor of class DecList.
buildDecList
public void buildDecList(Instances data,
boolean leaf) throws java.lang.Exception
Builds the partial tree without hold out set.
- Throws:
- java.lang.Exception - if something goes wrong
buildDecList
public void buildDecList(Instances train,
Instances test,
boolean leaf) throws java.lang.Exception
Builds the partial tree with hold out set
- Throws:
- java.lang.Exception - if something goes wrong
classifyInstance
public double classifyInstance(Instance instance) throws java.lang.Exception
Classifies an instance.
- Throws:
- java.lang.Exception - if something goes wrong
distributionForInstance
public final double[] distributionForInstance(Instance instance) throws java.lang.Exception
Returns class probabilities for a weighted instance.
- Throws:
- java.lang.Exception - if something goes wrong
weight
public double weight(Instance instance) throws java.lang.Exception
Returns the weight a rule assigns to an instance.
- Throws:
- java.lang.Exception - if something goes wrong
cleanup
public final void cleanup(Instances justHeaderInfo)
Cleanup in order to save memory.
toString
public java.lang.String toString()
Prints rules.
- Overrides:
- toString in class java.lang.Object
All Packages Class Hierarchy This Package Previous Next Index WEKA's home