|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.classifier.df.tools.TreeVisualizer
public final class TreeVisualizer
This tool is to visualize the Decision tree
Method Summary | |
---|---|
static String[] |
predictTrace(Node tree,
Data data,
String[] attrNames)
Predict trace to String |
static void |
predictTracePrint(Node tree,
Data data,
String[] attrNames)
Print predict trace |
static void |
print(Node tree,
Dataset dataset,
String[] attrNames)
Print Decision tree |
static String |
toString(Node tree,
Dataset dataset,
String[] attrNames)
Decision tree to String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String toString(Node tree, Dataset dataset, String[] attrNames)
tree
- Node of treeattrNames
- attribute namespublic static void print(Node tree, Dataset dataset, String[] attrNames)
tree
- Node of treeattrNames
- attribute namespublic static String[] predictTrace(Node tree, Data data, String[] attrNames)
tree
- Node of treeattrNames
- attribute namespublic static void predictTracePrint(Node tree, Data data, String[] attrNames)
tree
- Node of treeattrNames
- attribute names
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |