|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.trees.m5.M5Base2
weka.classifiers.trees.M5P2
public class M5P2
M5Base. Implements base routines for generating M5 Model trees and rules
The original algorithm M5 was invented by R. Quinlan and Yong Wang made improvements.
For more information see:
Ross J. Quinlan: Learning with Continuous Classes. In: 5th Australian Joint Conference on Artificial Intelligence, Singapore, 343-348, 1992.
Y. Wang, I. H. Witten: Induction of model trees for predicting continuous classes. In: Poster papers of the 9th European Conference on Machine Learning, 1997.
@inproceedings{Quinlan1992,
address = {Singapore},
author = {Ross J. Quinlan},
booktitle = {5th Australian Joint Conference on Artificial Intelligence},
pages = {343-348},
publisher = {World Scientific},
title = {Learning with Continuous Classes},
year = {1992}
}
@inproceedings{Wang1997,
author = {Y. Wang and I. H. Witten},
booktitle = {Poster papers of the 9th European Conference on Machine Learning},
publisher = {Springer},
title = {Induction of model trees for predicting continuous classes},
year = {1997}
}
Valid options are:
-N Use unpruned tree/rules
-U Use unsmoothed predictions
-R Build regression tree/rule rather than a model tree/rule
-M <minimum number of instances> Set minimum number of instances per leaf (default 4)
-L Save instances at the nodes in the tree (for visualization purposes)
| Field Summary |
|---|
| Fields inherited from class weka.classifiers.trees.m5.M5Base2 |
|---|
m_minNumInstances, m_regressionTree, m_ruleSet, m_saveInstances, m_useUnpruned |
| Fields inherited from class weka.classifiers.AbstractClassifier |
|---|
m_Debug |
| Fields inherited from interface weka.core.Drawable |
|---|
BayesNet, Newick, NOT_DRAWABLE, TREE |
| Constructor Summary | |
|---|---|
M5P2()
Creates a new M5P instance. |
|
| Method Summary | |
|---|---|
String[] |
getOptions()
Gets the current settings of the classifier. |
String |
getRevision()
Returns the revision string. |
boolean |
getSaveInstances()
Get whether instance data is being save. |
String |
graph()
Return a dot style String describing the tree. |
int |
graphType()
Returns the type of graph this classifier represents. |
Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(String[] args)
Main method by which this class can be tested |
String |
saveInstancesTipText()
Returns the tip text for this property |
void |
setOptions(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.AbstractClassifier |
|---|
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, runClassifier, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public M5P2()
M5P instance.
| Method Detail |
|---|
public int graphType()
graphType in interface weka.core.Drawable
public String graph()
throws Exception
graph in interface weka.core.DrawableString value
Exception - if an error occurspublic String saveInstancesTipText()
public void setSaveInstances(boolean save)
save - a boolean valuepublic boolean getSaveInstances()
boolean valuepublic Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class M5Base2
public void setOptions(String[] options)
throws Exception
-N Use unpruned tree/rules
-U Use unsmoothed predictions
-R Build regression tree/rule rather than a model tree/rule
-M <minimum number of instances> Set minimum number of instances per leaf (default 4)
-L Save instances at the nodes in the tree (for visualization purposes)
setOptions in interface weka.core.OptionHandlersetOptions in class M5Base2options - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class M5Base2public String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.classifiers.AbstractClassifierpublic static void main(String[] args)
args - an array of options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||