类 AODEsr
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.bayes.AODEsr
- 所有已实现的接口:
Serializable
,Cloneable
,UpdateableClassifier
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
,WeightedInstancesHandler
public class AODEsr
extends Classifier
implements OptionHandler, WeightedInstancesHandler, UpdateableClassifier, TechnicalInformationHandler
AODEsr augments AODE with Subsumption Resolution.AODEsr detects specializations between two attribute values at classification time and deletes the generalization attribute value.
For more information, see:
Fei Zheng, Geoffrey I. Webb: Efficient Lazy Elimination for Averaged-One Dependence Estimators. In: Proceedings of the Twenty-third International Conference on Machine Learning (ICML 2006), 1113-1120, 2006. BibTeX:
For more information, see:
Fei Zheng, Geoffrey I. Webb: Efficient Lazy Elimination for Averaged-One Dependence Estimators. In: Proceedings of the Twenty-third International Conference on Machine Learning (ICML 2006), 1113-1120, 2006. BibTeX:
@inproceedings{Zheng2006, author = {Fei Zheng and Geoffrey I. Webb}, booktitle = {Proceedings of the Twenty-third International Conference on Machine Learning (ICML 2006)}, pages = {1113-1120}, publisher = {ACM Press}, title = {Efficient Lazy Elimination for Averaged-One Dependence Estimators}, year = {2006}, ISBN = {1-59593-383-2} }Valid options are:
-D Output debugging information
-C Impose a critcal value for specialization-generalization relationship (default is 50)
-F Impose a frequency limit for superParents (default is 1)
-L Using Laplace estimation (default is m-esimation (m=1))
-M Weight value for m-estimation (default is 1.0)
- 版本:
- $Revision: 5516 $
- 作者:
- Fei Zheng, Janice Boughton
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances instances) Generates the classifier.Returns the tip text for this propertydouble[]
distributionForInstance
(Instance instance) Calculates the class membership probabilities for the given test instance.Returns the tip text for this propertyReturns default capabilities of the classifier.int
Gets the critical value.int
Gets the frequency limit.double
Gets the weight used in m-estimateString[]
Gets the current settings 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.boolean
Gets if laplace correction is being used.Returns a string describing this classifierdouble
LaplaceEstimate
(double frequency, double total, double numValues) Returns the probability estimate, using laplace correctionReturns an enumeration describing the available optionsstatic void
Main method for testing this class.double
MEstimate
(double frequency, double total, double numValues) Returns the probability estimate, using m-estimateReturns the tip text for this propertydouble
NBconditionalProb
(Instance instance, int classVal) Calculates the probability of the specified class for the given test instance, using naive Bayes.void
setCriticalValue
(int c) Sets the critical valuevoid
setFrequencyLimit
(int f) Sets the frequency limitvoid
setMestWeight
(double w) Sets the weight for m-estimatevoid
setOptions
(String[] options) Parses a given list of options.void
setUseLaplace
(boolean value) Sets if laplace correction is to be used.toString()
Returns a description of the classifier.void
updateClassifier
(Instance instance) Updates the classifier with the given instance.Returns the tip text for this property从类继承的方法 weka.classifiers.Classifier
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
AODEsr
public AODEsr()
-
-
方法详细资料
-
globalInfo
Returns a string describing this classifier- 返回:
- a description of the classifier 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
在类中Classifier
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
buildClassifier
Generates the classifier.- 指定者:
buildClassifier
在类中Classifier
- 参数:
instances
- set of instances serving as training data- 抛出:
Exception
- if the classifier has not been generated successfully
-
updateClassifier
Updates the classifier with the given instance.- 指定者:
updateClassifier
在接口中UpdateableClassifier
- 参数:
instance
- the new training instance to include in the model- 抛出:
Exception
- if the instance could not be incorporated in the model.
-
distributionForInstance
Calculates the class membership probabilities for the given test instance.- 覆盖:
distributionForInstance
在类中Classifier
- 参数:
instance
- the instance to be classified- 返回:
- predicted class probability distribution
- 抛出:
Exception
- if there is a problem generating the prediction
-
NBconditionalProb
Calculates the probability of the specified class for the given test instance, using naive Bayes.- 参数:
instance
- the instance to be classifiedclassVal
- the class for which to calculate the probability- 返回:
- predicted class probability
- 抛出:
Exception
- if there is a problem generating the prediction
-
MEstimate
public double MEstimate(double frequency, double total, double numValues) Returns the probability estimate, using m-estimate- 参数:
frequency
- frequency of value of interesttotal
- count of all valuesnumValues
- number of different values- 返回:
- the probability estimate
-
LaplaceEstimate
public double LaplaceEstimate(double frequency, double total, double numValues) Returns the probability estimate, using laplace correction- 参数:
frequency
- frequency of value of interesttotal
- count of all valuesnumValues
- number of different values- 返回:
- the probability estimate
-
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:-D Output debugging information
-C Impose a critcal value for specialization-generalization relationship (default is 50)
-F Impose a frequency limit for superParents (default is 1)
-L Using Laplace estimation (default is m-esimation (m=1))
-M Weight value for m-estimation (default is 1.0)
- 指定者:
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 the classifier.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Classifier
- 返回:
- an array of strings suitable for passing to setOptions
-
mestWeightTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setMestWeight
public void setMestWeight(double w) Sets the weight for m-estimate- 参数:
w
- the weight
-
getMestWeight
public double getMestWeight()Gets the weight used in m-estimate- 返回:
- the weight for m-estimation
-
useLaplaceTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getUseLaplace
public boolean getUseLaplace()Gets if laplace correction is being used.- 返回:
- Value of m_Laplace.
-
setUseLaplace
public void setUseLaplace(boolean value) Sets if laplace correction is to be used.- 参数:
value
- Value to assign to m_Laplace.
-
frequencyLimitTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setFrequencyLimit
public void setFrequencyLimit(int f) Sets the frequency limit- 参数:
f
- the frequency limit
-
getFrequencyLimit
public int getFrequencyLimit()Gets the frequency limit.- 返回:
- the frequency limit
-
criticalValueTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setCriticalValue
public void setCriticalValue(int c) Sets the critical value- 参数:
c
- the critical value
-
getCriticalValue
public int getCriticalValue()Gets the critical value.- 返回:
- the critical value
-
toString
Returns a description of the classifier. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- the options
-