|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.rules.Prism.PrismRule
Class for storing a PRISM ruleset, i.e. a list of rules
Field Summary | |
private int |
m_classification
The classification |
private int |
m_errors
Number of errors made by this rule (will end up 0) |
private Instances |
m_instances
The instance |
private Prism.PrismRule |
m_next
The next rule in the list |
private Prism.Test |
m_test
First test of this rule |
Constructor Summary | |
Prism.PrismRule(Instances data,
int cl)
Constructor that takes instances and the classification. |
Method Summary | |
Instances |
coveredBy(Instances data)
Returns the set of instances that are covered by this rule. |
Instances |
notCoveredBy(Instances data)
Returns the set of instances that are not covered by this rule. |
int |
resultRule(Instance inst)
Returns the result assigned by this rule to a given instance. |
int |
resultRules(Instance inst)
Returns the result assigned by these rules to a given instance. |
java.lang.String |
toString()
Prints the set of rules. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int m_classification
private Instances m_instances
private Prism.Test m_test
private int m_errors
private Prism.PrismRule m_next
Constructor Detail |
public Prism.PrismRule(Instances data, int cl) throws java.lang.Exception
data
- the instancescl
- the class
java.lang.Exception
- if something goes wrongMethod Detail |
public int resultRule(Instance inst)
inst
- the instance to be classified
public int resultRules(Instance inst)
inst
- the instance to be classified
public Instances coveredBy(Instances data)
data
- the instances to be checked
public Instances notCoveredBy(Instances data)
data
- the instances to be checked
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |