|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rdr.core.Classifier rdr.methods.MCRDR
public class MCRDR
An implementation of the Multiple Classification Ripple Down Rules method. Uses NTreeNode. Based on specification by Kang.
Field Summary | |
---|---|
NTreeNode |
root
|
common.datastructures.MyFastVector<Case> |
seenCases
|
Fields inherited from class rdr.core.Classifier |
---|
highestID, nodeIndex |
Constructor Summary | |
---|---|
MCRDR()
|
Method Summary | |
---|---|
void |
buildCornerstones(NTreeNode newNode)
Checks the parent node's cornerstones to see if they're also cornerstones for this node Should only be called when the node is first added, otherwise use insertCornerstone to update as appropriate |
common.datastructures.MyFastVector<Node> |
classify(Case c)
The default classify method. |
common.datastructures.MyFastVector<Node> |
classify(Case c,
NTreeNode n)
Perform an MCRDR inference to classify the case c |
java.lang.String |
getClassName()
|
common.datastructures.MyFastVector<Case> |
getCornerstones(Rule newRule,
NTreeNode parent)
Fetch the cornerstone cases that would apply to a newRule being added as a child of parent |
NTreeNode |
getNode(int nodeID)
Find a node based on a node ID |
NTreeNode |
getRoot()
|
boolean |
insertNode(Case theCase,
Node newNode,
Node parentNode)
|
void |
launchKAGUI(int mode,
Case c)
Launch the knowledge acquisition GUi which is designed for this classification method |
void |
launchKAGUI(int mode,
Case c,
int nodeEditing)
|
boolean |
load()
|
boolean |
save()
|
boolean |
save(java.lang.String modelName)
Saves the classifier including knowledge base to file - serialized. |
void |
updateSeenCases(Case c)
Inserts the case c into the seen cases set only if it's not already in there. |
Methods inherited from class rdr.core.Classifier |
---|
getNodeIndex, incrementID |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public common.datastructures.MyFastVector<Case> seenCases
public NTreeNode root
Constructor Detail |
---|
public MCRDR()
Method Detail |
---|
public common.datastructures.MyFastVector<Node> classify(Case c)
classify
in class Classifier
c
- the case to classifypublic common.datastructures.MyFastVector<Node> classify(Case c, NTreeNode n)
c
- the case to classifyn
- the node we're currently evaluating
public boolean load()
load
in class Classifier
public boolean save()
save
in class Classifier
public boolean save(java.lang.String modelName)
public boolean insertNode(Case theCase, Node newNode, Node parentNode)
insertNode
in class Classifier
public void launchKAGUI(int mode, Case c, int nodeEditing)
launchKAGUI
in class Classifier
public void launchKAGUI(int mode, Case c)
launchKAGUI
in class Classifier
mode
- the mode code (i.e. ADD, EDIT, REMOVE)c
- the case that the rule is being created forpublic NTreeNode getNode(int nodeID)
nodeID
- the node id
public void updateSeenCases(Case c)
c
- public java.lang.String getClassName()
getClassName
in class Classifier
public common.datastructures.MyFastVector<Case> getCornerstones(Rule newRule, NTreeNode parent)
newRule
- the new ruleparent
- the parent node
public void buildCornerstones(NTreeNode newNode)
newNode
- the new node that needs to have its cornerstone cases builtpublic NTreeNode getRoot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |