|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.Classifier
weka.classifiers.trees.m5.M5Base
weka.classifiers.trees.M5P
public class M5P
M5P. Implements routines for generating M5 model trees.
The original algorithm M5 was invented by Quinlan:
-U
Use unsmoothed predictions.
| Field Summary |
|---|
| Fields inherited from interface weka.core.Drawable |
|---|
BayesNet, NOT_DRAWABLE, TREE |
| Constructor Summary | |
|---|---|
M5P()
Creates a new M5P instance. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getOptions()
Gets the current settings of the classifier. |
boolean |
getSaveInstances()
Get whether instance data is being save. |
java.lang.String |
graph()
Return a dot style String describing the tree. |
int |
graphType()
Returns the type of graph this classifier represents. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] args)
Main method by which this class can be tested |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
void |
setSaveInstances(boolean save)
Set whether to save instance data at each node in the tree for visualization purposes |
| Methods inherited from class weka.classifiers.trees.m5.M5Base |
|---|
buildClassifier, classifyInstance, enumerateMeasures, getBuildRegressionTree, getM5RootNode, getMeasure, getMinNumInstances, getUnpruned, getUseUnsmoothed, globalInfo, measureNumRules, setBuildRegressionTree, setMinNumInstances, setUnpruned, setUseUnsmoothed, toString |
| Methods inherited from class weka.classifiers.Classifier |
|---|
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, setDebug |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public M5P()
M5P instance.
| Method Detail |
|---|
public int graphType()
graphType in interface Drawable
public java.lang.String graph()
throws java.lang.Exception
graph in interface DrawableString value
java.lang.Exception - if an error occurspublic void setSaveInstances(boolean save)
save - a boolean valuepublic boolean getSaveInstances()
boolean valuepublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class M5Base
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
Valid options are:
-U
Use unsmoothed predictions.
-R
Build a regression tree rather than a model tree.
-L
Save instance data at each node (for visualization purposes).
setOptions in interface OptionHandlersetOptions in class M5Baseoptions - the list of options as an array of strings
java.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class M5Basepublic static void main(java.lang.String[] args)
args - an array of options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||