|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.rules.part.MakeDecList
public class MakeDecList
Class for handling a decision list.
| Constructor Summary | |
|---|---|
MakeDecList(ModelSelection toSelectLocModel,
double cf,
int minNum)
Constructor for dec list pruned using C4.5 pruning. |
|
MakeDecList(ModelSelection toSelectLocModel,
int minNum)
Constructor for unpruned dec list. |
|
MakeDecList(ModelSelection toSelectLocModel,
int num,
int minNum,
int seed)
Constructor for dec list pruned using hold-out pruning. |
|
| Method Summary | |
|---|---|
void |
buildClassifier(Instances data)
Builds dec list. |
double |
classifyInstance(Instance instance)
Classifies an instance. |
double[] |
distributionForInstance(Instance instance)
Returns the class distribution for an instance. |
Capabilities |
getCapabilities()
Returns default capabilities of the classifier. |
java.lang.String |
getRevision()
Returns the revision string. |
int |
numRules()
Outputs the number of rules in the classifier. |
java.lang.String |
toString()
Outputs the classifier into a string. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MakeDecList(ModelSelection toSelectLocModel,
int minNum)
public MakeDecList(ModelSelection toSelectLocModel,
double cf,
int minNum)
public MakeDecList(ModelSelection toSelectLocModel,
int num,
int minNum,
int seed)
| Method Detail |
|---|
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlerCapabilities
public void buildClassifier(Instances data)
throws java.lang.Exception
java.lang.Exception - if dec list can't be built successfullypublic java.lang.String toString()
toString in class java.lang.Object
public double classifyInstance(Instance instance)
throws java.lang.Exception
java.lang.Exception - if instance can't be classified
public double[] distributionForInstance(Instance instance)
throws java.lang.Exception
java.lang.Exception - if distribution can't be computedpublic int numRules()
public java.lang.String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||