类 PLSClassifier
java.lang.Object
weka.classifiers.Classifier
weka.classifiers.functions.PLSClassifier
- 所有已实现的接口:
Serializable
,Cloneable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
A wrapper classifier for the PLSFilter, utilizing the PLSFilter's ability to perform predictions.
Valid options are:
-filter <filter specification> The PLS filter to use. Full classname of filter to include, followed by scheme options. (default: weka.filters.supervised.attribute.PLSFilter)
-D If set, classifier is run in debug mode and may output additional info to the console
Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'):
-D Turns on output of debugging information.
-C <num> The number of components to compute. (default: 20)
-U Updates the class attribute as well. (default: off)
-M Turns replacing of missing values on. (default: off)
-A <SIMPLS|PLS1> The algorithm to use. (default: PLS1)
-P <none|center|standardize> The type of preprocessing that is applied to the data. (default: center)
- 版本:
- $Revision: 1.4 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
buildClassifier
(Instances data) builds the classifierdouble
classifyInstance
(Instance instance) Classifies the given test instance.Returns the tip text for this propertyReturns default capabilities of the classifier.Get the PLS filter.String[]
returns the options of the current setupReturns the revision string.Returns a string describing classifierGets an enumeration describing the available options.static void
Main method for running this classifier from commandline.void
Set the PLS filter (only used for setup).void
setOptions
(String[] options) Parses the options for this object.toString()
returns a string representation of the classifier从类继承的方法 weka.classifiers.Classifier
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, setDebug
-
构造器详细资料
-
PLSClassifier
public PLSClassifier()
-
-
方法详细资料
-
globalInfo
Returns a string describing classifier- 返回:
- a description suitable for displaying in the explorer/experimenter gui
-
listOptions
Gets an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中Classifier
- 返回:
- an enumeration of all the available options.
-
getOptions
returns the options of the current setup- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中Classifier
- 返回:
- the current options
-
setOptions
Parses the options for this object. Valid options are:-filter <filter specification> The PLS filter to use. Full classname of filter to include, followed by scheme options. (default: weka.filters.supervised.attribute.PLSFilter)
-D If set, classifier is run in debug mode and may output additional info to the console
Options specific to filter weka.filters.supervised.attribute.PLSFilter ('-filter'):
-D Turns on output of debugging information.
-C <num> The number of components to compute. (default: 20)
-U Updates the class attribute as well. (default: off)
-M Turns replacing of missing values on. (default: off)
-A <SIMPLS|PLS1> The algorithm to use. (default: PLS1)
-P <none|center|standardize> The type of preprocessing that is applied to the data. (default: center)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中Classifier
- 参数:
options
- the options to use- 抛出:
Exception
- if setting of options fails
-
filterTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setFilter
Set the PLS filter (only used for setup).- 参数:
value
- the kernel filter.- 抛出:
Exception
- if not PLSFilter
-
getFilter
Get the PLS filter.- 返回:
- the PLS filter
-
getCapabilities
Returns default capabilities of the classifier.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Classifier
- 返回:
- the capabilities of this classifier
- 另请参阅:
-
buildClassifier
builds the classifier- 指定者:
buildClassifier
在类中Classifier
- 参数:
data
- the training instances- 抛出:
Exception
- if something goes wrong
-
classifyInstance
Classifies the given test instance. The instance has to belong to a dataset when it's being classified.- 覆盖:
classifyInstance
在类中Classifier
- 参数:
instance
- the instance to be classified- 返回:
- the predicted most likely class for the instance or Instance.missingValue() if no prediction is made
- 抛出:
Exception
- if an error occurred during the prediction
-
toString
returns a string representation of the classifier -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Classifier
- 返回:
- the revision
-
main
Main method for running this classifier from commandline.- 参数:
args
- the options
-