|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.associations.classification.PruneCAR
public abstract class PruneCAR
Abstract scheme for storing and pruning class associations. All schemes for storing and pruning class associations implemement this class
Constructor Summary | |
---|---|
PruneCAR()
|
Method Summary | |
---|---|
abstract void |
deleteContent(CrNode node,
int index)
Deletes a consequence from a node |
static PruneCAR |
forName(java.lang.String pruningName,
java.lang.String[] options)
Creates a new instance of a PruneCAR given it's class name and (optional) arguments to pass to it's setOptions method. |
abstract void |
insertContent(CrNode node,
FastVector input)
Inserts a consequence and the according interestingness measures into a node |
abstract boolean |
isEmpty()
Tests if there are rules |
abstract void |
preprocess(FastVector premises,
FastVector consequences,
FastVector confidences)
Preprocesses rules before inserting them into the structure |
abstract void |
prune()
Prunes rules out of tree |
abstract void |
pruneBeforeInsertion(FastVector prem,
FastVector cons)
Pruning step before a rule is inserted into the structure |
abstract int |
prunedRules()
Gets the number of pruned rules. |
abstract FastVector |
pruningCriterions(FastVector input)
FastVector defining additional pruning criteria |
abstract void |
setInstancesNoClass(Instances instances)
Sets the instances without the class attribute |
abstract void |
setInstancesOnlyClass(Instances instances)
Sets the instances where all attributes except for the class attribute are deleted |
abstract java.lang.String |
toString(java.lang.String metricType)
Outputs the rules |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface weka.core.OptionHandler |
---|
getOptions, listOptions, setOptions |
Constructor Detail |
---|
public PruneCAR()
Method Detail |
---|
public abstract boolean isEmpty()
public abstract void setInstancesNoClass(Instances instances)
instances
- the instancespublic abstract void setInstancesOnlyClass(Instances instances)
instances
- the instancespublic abstract void preprocess(FastVector premises, FastVector consequences, FastVector confidences) throws java.lang.Exception
premises
- the premisesconsequences
- the consequencesconfidences
- the interestingness measures
java.lang.Exception
- throws eception if preprocessing is not possiblepublic abstract void insertContent(CrNode node, FastVector input)
node
- the nodeinput
- the consequence and the interestingness measurespublic abstract void deleteContent(CrNode node, int index)
node
- the nodeindex
- the index of the consequencepublic abstract FastVector pruningCriterions(FastVector input)
input
- the criteria
public abstract void pruneBeforeInsertion(FastVector prem, FastVector cons)
prem
- the premisecons
- the consequencepublic abstract void prune()
public abstract int prunedRules()
public abstract java.lang.String toString(java.lang.String metricType)
metricType
- the metrci type of the sort order
public static PruneCAR forName(java.lang.String pruningName, java.lang.String[] options) throws java.lang.Exception
pruningName
- the fully qualified class name of the PruneCARoptions
- an array of options suitable for passing to setOptions. May
be null.
java.lang.Exception
- if the PruneC>R name is invalid, or the options
supplied are not acceptable to the PruneCAR
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |