|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.rules.Rule
public abstract class Rule
Abstract class of generic rule
| Constructor Summary | |
|---|---|
Rule()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
copy()
Get a shallow copy of this rule |
abstract boolean |
covers(Instance datum)
Whether the instance covered by this rule |
abstract double |
getConsequent()
Get the consequent of this rule, i.e. |
abstract void |
grow(Instances data)
Build this rule |
abstract boolean |
hasAntds()
Whether this rule has antecedents, i.e. |
abstract double |
size()
The size of the rule. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface weka.core.RevisionHandler |
|---|
getRevision |
| Constructor Detail |
|---|
public Rule()
| Method Detail |
|---|
public java.lang.Object copy()
copy in interface Copyablepublic abstract boolean covers(Instance datum)
datum - the instance in question
public abstract void grow(Instances data)
throws java.lang.Exception
data - the data used to build the rule
java.lang.Exception - if rule cannot be builtpublic abstract boolean hasAntds()
public abstract double getConsequent()
public abstract double size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||