|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractDirectedGraph
DecisionTreeImpl
public class DecisionTreeImpl
Field Summary |
---|
Fields inherited from class AbstractDirectedGraph |
---|
STREAM_DEBUG |
Constructor Summary | |
---|---|
DecisionTreeImpl(DecisionNode root)
|
|
DecisionTreeImpl(TableIndex index)
|
Method Summary | |
---|---|
void |
addHistory(DecisionInternal internal)
|
void |
addHistory(DecisionLeaf leaf)
|
void |
addListener(DecisionListener listener)
interface DecisionTree |
void |
adopt(DecisionNode node)
interface Factory |
void |
clear()
interface Collection |
Object |
clone()
interface DirectedGraph |
DecisionNode |
clone(DecisionNode node)
interface Factory |
Parameter |
clone(Parameter parameter)
interface Factory |
boolean |
contains(Object vertex)
interface DirectedGraph |
void |
decisionEvent(DecisionEvent e)
interface DecisionListener |
void |
ensureSnapshot()
interface DecisionTree |
Table |
expand()
interface DecisionTree |
DecisionLeaf |
getDefault()
interface Factory |
TableIndex |
getIndex()
interface DecisionTree |
Collection |
getInternalHistory()
interface Factory |
DecisionLeaf |
getLeaf(DecisionNode node,
int[] instantiation)
|
DecisionLeaf |
getLeaf(int[] indices)
interface DecisionTree |
Collection |
getLeafHistory()
interface Factory |
double |
getParameter(int[] indices)
interface DecisionTree |
Collection |
getParameterHistory()
interface Factory |
DecisionNode |
getRoot()
interface DecisionTree |
DecisionBackup |
getSnapshot()
interface DecisionTree |
Set |
inComing(Object vertex)
interface DirectedGraph |
void |
initRoot(DecisionNode root)
|
DecisionInternal |
internalForID(String id)
interface Factory |
boolean |
isUniqueNodeID(String id)
interface Factory |
boolean |
isUniqueParameterID(String id)
interface Factory |
boolean |
isValidID(String id)
interface Factory |
DecisionLeaf |
leafForID(String id)
interface Factory |
DecisionInternal |
newInternal(FiniteVariable var)
interface Factory |
DecisionLeaf |
newLeaf(FiniteVariable var)
interface Factory |
DecisionLeaf |
newLeaf(FiniteVariable var,
Parameter[] params)
interface Factory |
Parameter |
newParameter(double value)
interface Factory |
Parameter |
newParameter(String id,
double value)
interface Factory |
DecisionNode |
nodeForID(String id)
interface Factory |
void |
normalize()
interface DecisionTree |
void |
noteOptimizationEpsilon(double epsilon)
|
Set |
outGoing(Object vertex)
interface DirectedGraph |
Parameter |
parameterForID(String id)
interface Factory |
double |
recallOptimizationEpsilon()
|
boolean |
removeHistory(DecisionLeaf leaf)
interface Factory |
void |
removeHistoryAllDescendants(DecisionNode oldRoot)
|
boolean |
removeListener(DecisionListener listener)
interface DecisionTree |
boolean |
restoreSnapshot()
interface DecisionTree |
void |
setSnapshot(DecisionBackup snaoshot)
interface DecisionTree |
void |
snapshot()
interface DecisionTree |
Methods inherited from class AbstractDirectedGraph |
---|
add, addAll, addEdge, addVertex, containsAll, containsEdge, degree, depthFirstIterator, hasPath, inDegree, isAcyclic, isEmpty, isSinglyConnected, isWeaklyConnected, isWeaklyConnected, iterator, maintainsAcyclicity, numEdges, outDegree, remove, removeAll, removeEdge, removeVertex, replaceVertex, replaceVertices, retainAll, size, toArray, toArray, topologicalOrder, vertices |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface DirectedGraph |
---|
addEdge, addVertex, containsEdge, degree, hasPath, inDegree, isAcyclic, isSinglyConnected, isWeaklyConnected, isWeaklyConnected, maintainsAcyclicity, numEdges, outDegree, removeEdge, removeVertex, replaceVertex, replaceVertices, size, topologicalOrder, vertices |
Methods inherited from interface Collection |
---|
add, addAll, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public DecisionTreeImpl(TableIndex index)
public DecisionTreeImpl(DecisionNode root)
Method Detail |
---|
public void noteOptimizationEpsilon(double epsilon)
public double recallOptimizationEpsilon()
public void snapshot()
snapshot
in interface DecisionTree
public boolean restoreSnapshot()
restoreSnapshot
in interface DecisionTree
public void ensureSnapshot()
ensureSnapshot
in interface DecisionTree
public DecisionBackup getSnapshot()
getSnapshot
in interface DecisionTree
public void setSnapshot(DecisionBackup snaoshot)
setSnapshot
in interface DecisionTree
public void normalize()
normalize
in interface DecisionTree
public DecisionNode getRoot()
getRoot
in interface DecisionTree
public TableIndex getIndex()
getIndex
in interface DecisionTree
public Table expand()
expand
in interface DecisionTree
public DecisionLeaf getLeaf(int[] indices)
getLeaf
in interface DecisionTree
public DecisionLeaf getLeaf(DecisionNode node, int[] instantiation)
public void addListener(DecisionListener listener)
addListener
in interface DecisionTree
public boolean removeListener(DecisionListener listener)
removeListener
in interface DecisionTree
public void decisionEvent(DecisionEvent e)
decisionEvent
in interface DecisionListener
public void initRoot(DecisionNode root)
public double getParameter(int[] indices)
getParameter
in interface DecisionTree
public void clear()
clear
in interface Collection
public Object clone()
clone
in interface DirectedGraph
clone
in class AbstractDirectedGraph
public Set inComing(Object vertex)
inComing
in interface DirectedGraph
public Set outGoing(Object vertex)
outGoing
in interface DirectedGraph
public boolean contains(Object vertex)
contains
in interface DirectedGraph
contains
in interface Collection
public Parameter newParameter(double value)
newParameter
in interface Factory
public Parameter newParameter(String id, double value)
newParameter
in interface Factory
public Parameter clone(Parameter parameter)
clone
in interface Factory
public DecisionNode clone(DecisionNode node)
clone
in interface Factory
public Collection getParameterHistory()
getParameterHistory
in interface Factory
public DecisionLeaf getDefault()
getDefault
in interface Factory
public DecisionLeaf newLeaf(FiniteVariable var)
newLeaf
in interface Factory
public DecisionLeaf newLeaf(FiniteVariable var, Parameter[] params)
newLeaf
in interface Factory
public boolean removeHistory(DecisionLeaf leaf)
removeHistory
in interface Factory
public void adopt(DecisionNode node)
adopt
in interface Factory
public void addHistory(DecisionLeaf leaf)
public void addHistory(DecisionInternal internal)
public Collection getLeafHistory()
getLeafHistory
in interface Factory
public DecisionInternal newInternal(FiniteVariable var)
newInternal
in interface Factory
public Collection getInternalHistory()
getInternalHistory
in interface Factory
public boolean isUniqueNodeID(String id)
isUniqueNodeID
in interface Factory
public boolean isUniqueParameterID(String id)
isUniqueParameterID
in interface Factory
public boolean isValidID(String id)
isValidID
in interface Factory
public Parameter parameterForID(String id)
parameterForID
in interface Factory
public DecisionLeaf leafForID(String id)
leafForID
in interface Factory
public DecisionInternal internalForID(String id)
internalForID
in interface Factory
public DecisionNode nodeForID(String id)
nodeForID
in interface Factory
public void removeHistoryAllDescendants(DecisionNode oldRoot)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |