|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.rules.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 |
Constructor Detail |
public Rule()
Method Detail |
public java.lang.Object copy()
copy
in interface Copyable
public abstract boolean covers(Instance datum)
public abstract void grow(Instances data) throws java.lang.Exception
data
- the data used to build the rule
if
- rule cannot be built
java.lang.Exception
public 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 |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London