All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.classifiers.j48.MakeDecList
java.lang.Object
|
+----weka.classifiers.j48.MakeDecList
- public class MakeDecList
- extends Object
Class for handling a decision list.
- Version:
- $Revision: 1.3 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
-
MakeDecList(ModelSelection, double, int)
- Constructor for dec list pruned using C4.5 pruning.
-
MakeDecList(ModelSelection, int, int)
- Constructor for dec list pruned using hold-out pruning.
-
buildClassifier(Instances)
- Builds dec list.
-
classifyInstance(Instance)
-
Classifies an instance.
-
distributionForInstance(Instance)
-
Returns the class distribution for an instance.
-
numRules()
- Outputs the number of rules in the classifier.
-
toString()
- Outputs the classifier into a string.
MakeDecList
public MakeDecList(ModelSelection toSelectLocModel,
double cf,
int minNum)
- Constructor for dec list pruned using C4.5 pruning.
MakeDecList
public MakeDecList(ModelSelection toSelectLocModel,
int num,
int minNum)
- Constructor for dec list pruned using hold-out pruning.
buildClassifier
public void buildClassifier(Instances data) throws Exception
- Builds dec list.
- Throws: Exception
- if dec list can't be built successfully
toString
public String toString()
- Outputs the classifier into a string.
- Overrides:
- toString in class Object
classifyInstance
public double classifyInstance(Instance instance) throws Exception
- Classifies an instance.
- Throws: Exception
- if instance can't be classified
distributionForInstance
public double[] distributionForInstance(Instance instance) throws Exception
- Returns the class distribution for an instance.
- Throws: Exception
- if distribution can't be computed
numRules
public int numRules()
- Outputs the number of rules in the classifier.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home