|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--com.huguesjohnson.jail.jdt.DecisionTree
JdtDecisionTree
| Constructor Summary | |
DecisionTree(java.util.Vector attributes,
java.util.Vector trainingData,
java.lang.String[] classifications)
constructor |
|
| Method Summary | |
java.lang.String |
breadthFirstSearch()
returns a string representing a breadth first search of the tree |
java.util.Vector |
breadthFirstSearchVector()
returns a vector representing a breadth first search of the tree |
java.lang.String |
classify(DataInstance dataInstance)
tries to classify a dataInstance |
java.lang.Object |
clone()
clone |
void |
prune(java.util.Vector pruneData)
prunes the tree based on a vector of pruning data |
double |
testAccuracy(java.util.Vector testData)
tests the accuracy of the tree |
java.lang.String |
toString()
returns a string representation of the tree |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DecisionTree(java.util.Vector attributes,
java.util.Vector trainingData,
java.lang.String[] classifications)
attributes - vector of all attributes for datatrainingData - vector of data used to train the treeclassifications - names of all valid classifications| Method Detail |
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String classify(DataInstance dataInstance)
dataInstance - the dataInstance to try and classifypublic void prune(java.util.Vector pruneData)
pruneData - data used to prune treepublic double testAccuracy(java.util.Vector testData)
testData - data to use in testpublic java.lang.String breadthFirstSearch()
public java.util.Vector breadthFirstSearchVector()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||