类 ClassificationViaRegression
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.SingleClassifierEnhancer
weka.classifiers.meta.ClassificationViaRegression
- 所有已实现的接口:
Serializable
,Cloneable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
public class ClassificationViaRegression
extends SingleClassifierEnhancer
implements TechnicalInformationHandler
Class for doing classification using regression methods. Class is binarized and one regression model is built for each class value. For more information, see, for example
E. Frank, Y. Wang, S. Inglis, G. Holmes, I.H. Witten (1998). Using model trees for classification. Machine Learning. 32(1):63-76. BibTeX:
E. Frank, Y. Wang, S. Inglis, G. Holmes, I.H. Witten (1998). Using model trees for classification. Machine Learning. 32(1):63-76. BibTeX:
@article{Frank1998, author = {E. Frank and Y. Wang and S. Inglis and G. Holmes and I.H. Witten}, journal = {Machine Learning}, number = {1}, pages = {63-76}, title = {Using model trees for classification}, volume = {32}, year = {1998} }Valid options are:
-D If set, classifier is run in debug mode and may output additional info to the console
-W Full name of base classifier. (default: weka.classifiers.trees.M5P)
Options specific to classifier weka.classifiers.trees.M5P:
-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)
- 版本:
- $Revision: 1.27 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz), Len Trigg (trigg@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances insts) Builds the classifiers.double[]
Returns the distribution for an instance.Returns default capabilities of the classifier.Returns the revision string.Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.Returns a string describing classifierstatic void
Main method for testing this class.toString()
Prints the classifiers.从类继承的方法 weka.classifiers.SingleClassifierEnhancer
classifierTipText, getClassifier, getOptions, listOptions, setClassifier, setOptions
从类继承的方法 weka.classifiers.Classifier
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
ClassificationViaRegression
public ClassificationViaRegression()Default constructor.
-
-
方法详细资料
-
globalInfo
Returns a string describing classifier- 返回:
- a description suitable for displaying in the explorer/experimenter gui
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中SingleClassifierEnhancer
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
buildClassifier
Builds the classifiers.- 指定者:
buildClassifier
在类中Classifier
- 参数:
insts
- the training data.- 抛出:
Exception
- if a classifier can't be built
-
distributionForInstance
Returns the distribution for an instance.- 覆盖:
distributionForInstance
在类中Classifier
- 参数:
inst
- the instance to get the distribution for- 返回:
- the computed distribution
- 抛出:
Exception
- if the distribution can't be computed successfully
-
toString
Prints the classifiers. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- the options for the learner
-