类 MILR
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.mi.MILR
- 所有已实现的接口:
Serializable
,Cloneable
,CapabilitiesHandler
,MultiInstanceCapabilitiesHandler
,OptionHandler
,RevisionHandler
Uses either standard or collective multi-instance assumption, but within linear regression. For the collective assumption, it offers arithmetic or geometric mean for the posteriors.
Valid options are:
-D Turn on debugging output.
-R <ridge> Set the ridge in the log-likelihood.
-A [0|1|2] Defines the type of algorithm: 0. standard MI assumption 1. collective MI assumption, arithmetic mean for posteriors 2. collective MI assumption, geometric mean for posteriors
- 版本:
- $Revision: 9144 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz), Xin Xu (xx5@cs.waikato.ac.nz)
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
collective MI assumption, arithmetic mean for posteriorsstatic final int
standard MI assumptionstatic final int
collective MI assumption, geometric mean for posteriorsstatic final Tag[]
the types of algorithms -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyvoid
buildClassifier
(Instances train) Builds the classifierdouble[]
Computes the distribution for a given exemplarGets the type of algorithm.Returns default capabilities of the classifier.Returns the capabilities of this multi-instance classifier for the relational data.String[]
Gets the current settings of the classifier.Returns the revision string.double
getRidge()
Gets the ridge in the log-likelihood.Returns the tip text for this propertyReturns an enumeration describing the available optionsstatic void
Main method for testing this class.Returns the tip text for this propertyvoid
setAlgorithmType
(SelectedTag newType) Sets the algorithm type.void
setOptions
(String[] options) Parses a given list of options.void
setRidge
(double ridge) Sets the ridge in the log-likelihood.toString()
Gets a string describing the classifier.从类继承的方法 weka.classifiers.Classifier
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebug
-
字段详细资料
-
ALGORITHMTYPE_DEFAULT
public static final int ALGORITHMTYPE_DEFAULTstandard MI assumption- 另请参阅:
-
ALGORITHMTYPE_ARITHMETIC
public static final int ALGORITHMTYPE_ARITHMETICcollective MI assumption, arithmetic mean for posteriors- 另请参阅:
-
ALGORITHMTYPE_GEOMETRIC
public static final int ALGORITHMTYPE_GEOMETRICcollective MI assumption, geometric mean for posteriors- 另请参阅:
-
TAGS_ALGORITHMTYPE
the types of algorithms
-
-
构造器详细资料
-
MILR
public MILR()
-
-
方法详细资料
-
globalInfo
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
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.- 指定者:
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
-
ridgeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setRidge
public void setRidge(double ridge) Sets the ridge in the log-likelihood.- 参数:
ridge
- the ridge
-
getRidge
public double getRidge()Gets the ridge in the log-likelihood.- 返回:
- the ridge
-
algorithmTypeTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getAlgorithmType
Gets the type of algorithm.- 返回:
- the algorithm type
-
setAlgorithmType
Sets the algorithm type.- 参数:
newType
- the new algorithm type
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Classifier
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
getMultiInstanceCapabilities
Returns the capabilities of this multi-instance classifier for the relational data.- 指定者:
getMultiInstanceCapabilities
在接口中MultiInstanceCapabilitiesHandler
- 返回:
- the capabilities of this object
- 另请参阅:
-
buildClassifier
Builds the classifier- 指定者:
buildClassifier
在类中Classifier
- 参数:
train
- the training data to be used for generating the boosted classifier.- 抛出:
Exception
- if the classifier could not be built successfully
-
distributionForInstance
Computes the distribution for a given exemplar- 覆盖:
distributionForInstance
在类中Classifier
- 参数:
exmp
- the exemplar for which distribution is computed- 返回:
- the distribution
- 抛出:
Exception
- if the distribution can't be computed successfully
-
toString
Gets a string describing the classifier. -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- should contain the command line arguments to the scheme (see Evaluation)
-