|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.classifiers.trees.adtree.Splitter
Abstract class representing a splitter node in an alternating tree.
Field Summary | |
int |
orderAdded
The number this node was in the order of nodes added to the tree |
Constructor Summary | |
Splitter()
|
Method Summary | |
abstract java.lang.String |
attributeString(Instances dataset)
Gets the string describing the attributes the split depends on. |
abstract int |
branchInstanceGoesDown(Instance i)
Gets the index of the branch that an instance applies to. |
abstract java.lang.Object |
clone()
Clones this node. |
abstract java.lang.String |
comparisonString(int branchNum,
Instances dataset)
Gets the string describing the comparision the split depends on for a particular branch. |
abstract boolean |
equalTo(Splitter compare)
Tests whether two splitters are equivalent. |
abstract PredictionNode |
getChildForBranch(int branchNum)
Gets the child for a branch of the split. |
abstract int |
getNumOfBranches()
Gets the number of branches of the split. |
abstract ReferenceInstances |
instancesDownBranch(int branch,
Instances sourceInstances)
Gets the subset of instances that apply to a particluar branch of the split. |
abstract void |
setChildForBranch(int branchNum,
PredictionNode childPredictor)
Sets the child for a branch of the split. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int orderAdded
Constructor Detail |
public Splitter()
Method Detail |
public abstract int getNumOfBranches()
public abstract int branchInstanceGoesDown(Instance i)
i
- the instance
public abstract ReferenceInstances instancesDownBranch(int branch, Instances sourceInstances)
branch
- the index of the branchsourceInstances
- the instances from which to find the subset
public abstract java.lang.String attributeString(Instances dataset)
dataset
- the dataset that the split is based on
public abstract java.lang.String comparisonString(int branchNum, Instances dataset)
branchNum
- the branch of the splitdataset
- the dataset that the split is based on
public abstract boolean equalTo(Splitter compare)
compare
- the splitter to compare with
public abstract void setChildForBranch(int branchNum, PredictionNode childPredictor)
branchNum
- the branch to set the child forchildPredictor
- the new childpublic abstract PredictionNode getChildForBranch(int branchNum)
branchNum
- the branch to get the child for
public abstract java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
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