类 LADTree
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.trees.LADTree
- 所有已实现的接口:
Serializable
,Cloneable
,AdditionalMeasureProducer
,CapabilitiesHandler
,Drawable
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
public class LADTree
extends Classifier
implements Drawable, AdditionalMeasureProducer, TechnicalInformationHandler
Class for generating a multi-class alternating decision tree using the LogitBoost strategy. For more info, see
Geoffrey Holmes, Bernhard Pfahringer, Richard Kirkby, Eibe Frank, Mark Hall: Multiclass alternating decision trees. In: ECML, 161-172, 2001. BibTeX:
Geoffrey Holmes, Bernhard Pfahringer, Richard Kirkby, Eibe Frank, Mark Hall: Multiclass alternating decision trees. In: ECML, 161-172, 2001. BibTeX:
@inproceedings{Holmes2001, author = {Geoffrey Holmes and Bernhard Pfahringer and Richard Kirkby and Eibe Frank and Mark Hall}, booktitle = {ECML}, pages = {161-172}, publisher = {Springer}, title = {Multiclass alternating decision trees}, year = {2001} }Valid options are:
-B <number of boosting iterations> Number of boosting iterations. (Default = 10)
-D If set, classifier is run in debug mode and may output additional info to the console
- 版本:
- $Revision: 10279 $
- 作者:
- Richard Kirkby
- 另请参阅:
-
字段概要
从接口继承的字段 weka.core.Drawable
BayesNet, Newick, NOT_DRAWABLE, TREE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances instances) Builds a classifier for a set of instances.double[]
distributionForInstance
(Instance instance) Returns the class probability distribution for an instance.void
done()
Returns an enumeration of the additional measure names.Returns default capabilities of the classifier.double
getMeasure
(String additionalMeasureName) Returns the value of the named measure.int
Gets the number of boosting iterations.String[]
Gets the current settings of ADTree.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 classifiergraph()
Returns graph describing the tree.int
Returns the type of graph this classifier represents.void
initClassifier
(Instances instances) Sets up the tree ready to be trained.legend()
Returns the legend of the tree, describing how results are to be interpreted.Returns an enumeration describing the available options.static void
Main method for testing this class.double
Returns the number of examples "counted".double
Returns the number of nodes expanded.double
Calls measure function for leaf size.double
Calls measure function for leaf size.double
Calls measure function for tree size.void
Merges two trees together.void
next
(int iteration) int
predictiveError
(Instances test) void
setNumOfBoostingIterations
(int b) Sets the number of boosting iterations.void
setOptions
(String[] options) Parses a given list of options.toString()
Returns a description of the classifier.从类继承的方法 weka.classifiers.Classifier
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
LADTree
public LADTree()
-
-
方法详细资料
-
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
-
initClassifier
Sets up the tree ready to be trained.- 参数:
instances
- the instances to train the tree with- 抛出:
Exception
- if training data is unsuitable
-
next
- 抛出:
Exception
-
done
- 抛出:
Exception
-
distributionForInstance
Returns the class probability distribution for an instance.- 覆盖:
distributionForInstance
在类中Classifier
- 参数:
instance
- the instance to be classified- 返回:
- the distribution the tree generates for the instance
-
toString
Returns a description of the classifier. -
graph
Returns graph describing the tree. -
legend
Returns the legend of the tree, describing how results are to be interpreted.- 返回:
- a string containing the legend of the classifier
-
numOfBoostingIterationsTipText
- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getNumOfBoostingIterations
public int getNumOfBoostingIterations()Gets the number of boosting iterations.- 返回:
- the number of boosting iterations
-
setNumOfBoostingIterations
public void setNumOfBoostingIterations(int b) Sets the number of boosting iterations.- 参数:
b
- the number of boosting iterations to use
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中Classifier
- 返回:
- an enumeration of all the available options
-
setOptions
Parses a given list of options. Valid options are:-B num
Set the number of boosting iterations (default 10)- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中Classifier
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of ADTree.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Classifier
- 返回:
- an array of strings suitable for passing to setOptions()
-
measureTreeSize
public double measureTreeSize()Calls measure function for tree size.- 返回:
- the tree size
-
measureNumLeaves
public double measureNumLeaves()Calls measure function for leaf size.- 返回:
- the leaf size
-
measureNumPredictionLeaves
public double measureNumPredictionLeaves()Calls measure function for leaf size.- 返回:
- the leaf size
-
measureNodesExpanded
public double measureNodesExpanded()Returns the number of nodes expanded.- 返回:
- the number of nodes expanded during search
-
measureExamplesCounted
public double measureExamplesCounted()Returns the number of examples "counted".- 返回:
- the number of nodes processed during search
-
enumerateMeasures
Returns an enumeration of the additional measure names.- 指定者:
enumerateMeasures
在接口中AdditionalMeasureProducer
- 返回:
- an enumeration of the measure names
-
getMeasure
Returns the value of the named measure.- 指定者:
getMeasure
在接口中AdditionalMeasureProducer
- 参数:
measureName
- the name of the measure to query for its value- 返回:
- the value of the named measure
- 抛出:
IllegalArgumentException
- if the named measure is not supported
-
buildClassifier
Builds a classifier for a set of instances.- 指定者:
buildClassifier
在类中Classifier
- 参数:
instances
- the instances to train the classifier with- 抛出:
Exception
- if something goes wrong
-
predictiveError
-
merge
Merges two trees together. Modifies the tree being acted on, leaving tree passed as a parameter untouched (cloned). Does not check to see whether training instances are compatible - strange things could occur if they are not.- 参数:
mergeWith
- the tree to merge with- 抛出:
Exception
- if merge could not be performed
-
graphType
public int graphType()Returns the type of graph this classifier represents. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Classifier
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
main
Main method for testing this class.- 参数:
argv
- the options
-