Example usage for Java weka.classifiers.trees J48 fields, constructors, methods, implement or subclass
The text is from its open source code.
void | buildClassifier(Instances instances) Generates the classifier. |
double | classifyInstance(Instance instance) Classifies an instance. |
double[] | distributionForInstance(Instance instance) Returns class probabilities for an instance. |
Capabilities | getCapabilities() Returns default capabilities of the classifier. |
float | getConfidenceFactor() Get the value of CF. |
String | graph() Returns graph describing the tree. |
double | measureNumLeaves() Returns the number of leaves |
double | measureNumRules() Returns the number of rules (same as number of leaves) |
String | prefix() Returns tree in prefix order. |
void | setCollapseTree(boolean v) Set the value of collapseTree. |
void | setConfidenceFactor(float v) Set the value of CF. |
void | setMinNumObj(int v) Set the value of minNumObj. |
void | setOptions(String[] options) Parses a given list of options. |
void | setUnpruned(boolean v) Set the value of unpruned. |
void | setUseLaplace(boolean newuseLaplace) Set the value of useLaplace. |
void | setUseMDLcorrection(boolean newuseMDLcorrection) Set the value of useMDLcorrection. |
String | toString() Returns a description of the classifier. |
String | toSummaryString() Returns a superconcise version of the model |