MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / walkTree

Method walkTree

JSAT/src/jsat/classifiers/trees/ID3.java:40–46  ·  view source on GitHub ↗
(ID3Node node, DataPoint data)

Source from the content-addressed store, hash-verified

38 }
39
40 static private CategoricalResults walkTree(ID3Node node, DataPoint data)
41 {
42 if(node.isLeaf())
43 return node.getResult();
44
45 return walkTree(node.getNode(data.getCategoricalValue(node.getAttributeId())), data);
46 }
47
48 public void trainC(ClassificationDataSet dataSet, ExecutorService threadPool)
49 {

Callers 1

classifyMethod · 0.95

Calls 5

getNodeMethod · 0.80
getCategoricalValueMethod · 0.80
getAttributeIdMethod · 0.80
isLeafMethod · 0.45
getResultMethod · 0.45

Tested by

no test coverage detected