类 PLSFilter
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleBatchFilter
weka.filters.supervised.attribute.PLSFilter
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,TechnicalInformationHandler
,SupervisedFilter
public class PLSFilter
extends SimpleBatchFilter
implements SupervisedFilter, TechnicalInformationHandler
Runs Partial Least Square Regression over the given instances and computes the resulting beta matrix for prediction.
By default it replaces missing values and centers the data.
For more information see:
Tormod Naes, Tomas Isaksson, Tom Fearn, Tony Davies (2002). A User Friendly Guide to Multivariate Calibration and Classification. NIR Publications.
StatSoft, Inc.. Partial Least Squares (PLS).
Bent Jorgensen, Yuri Goegebeur. Module 7: Partial least squares regression I.
S. de Jong (1993). SIMPLS: an alternative approach to partial least squares regression. Chemometrics and Intelligent Laboratory Systems. 18:251-263. BibTeX:
By default it replaces missing values and centers the data.
For more information see:
Tormod Naes, Tomas Isaksson, Tom Fearn, Tony Davies (2002). A User Friendly Guide to Multivariate Calibration and Classification. NIR Publications.
StatSoft, Inc.. Partial Least Squares (PLS).
Bent Jorgensen, Yuri Goegebeur. Module 7: Partial least squares regression I.
S. de Jong (1993). SIMPLS: an alternative approach to partial least squares regression. Chemometrics and Intelligent Laboratory Systems. 18:251-263. BibTeX:
@book{Naes2002, author = {Tormod Naes and Tomas Isaksson and Tom Fearn and Tony Davies}, publisher = {NIR Publications}, title = {A User Friendly Guide to Multivariate Calibration and Classification}, year = {2002}, ISBN = {0-9528666-2-5} } @misc{missing_id, author = {StatSoft, Inc.}, booktitle = {Electronic Textbook StatSoft}, title = {Partial Least Squares (PLS)}, HTTP = {http://www.statsoft.com/textbook/stpls.html} } @misc{missing_id, author = {Bent Jorgensen and Yuri Goegebeur}, booktitle = {ST02: Multivariate Data Analysis and Chemometrics}, title = {Module 7: Partial least squares regression I}, HTTP = {http://statmaster.sdu.dk/courses/ST02/module07/} } @article{Jong1993, author = {S. de Jong}, journal = {Chemometrics and Intelligent Laboratory Systems}, pages = {251-263}, title = {SIMPLS: an alternative approach to partial least squares regression}, volume = {18}, year = {1993} }Valid options are:
-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: 5541 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final int
the type of algorithm: PLS1static final int
the type of algorithm: SIMPLSstatic final int
the type of preprocessing: Centerstatic final int
the type of preprocessing: Nonestatic final int
the type of preprocessing: Standardizestatic final Tag[]
the types of algorithmstatic final Tag[]
the types of preprocessing -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyGets the type of algorithm to useReturns the Capabilities of this filter.int
returns the maximum number of attributes to use.String[]
returns the options of the current setupboolean
Gets whether the class attribute is updated with the predicted value.Gets the type of preprocessing to useboolean
Gets whether missing values are replace.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 this classifier.Gets an enumeration describing the available options.static void
runs the filter with the given arguments.Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyvoid
setAlgorithm
(SelectedTag value) Sets the type of algorithm to usevoid
setNumComponents
(int value) sets the maximum number of attributes to use.void
setOptions
(String[] options) Parses the options for this object.void
setPerformPrediction
(boolean value) Sets whether to update the class attribute with the predicted value.void
setPreprocessing
(SelectedTag value) Sets the type of preprocessing to usevoid
setReplaceMissing
(boolean value) Sets whether to replace missing values.从类继承的方法 weka.filters.SimpleBatchFilter
batchFinished, input
从类继承的方法 weka.filters.SimpleFilter
debugTipText, getDebug, setDebug, setInputFormat
从类继承的方法 weka.filters.Filter
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
字段详细资料
-
ALGORITHM_SIMPLS
public static final int ALGORITHM_SIMPLSthe type of algorithm: SIMPLS- 另请参阅:
-
ALGORITHM_PLS1
public static final int ALGORITHM_PLS1the type of algorithm: PLS1- 另请参阅:
-
TAGS_ALGORITHM
the types of algorithm -
PREPROCESSING_NONE
public static final int PREPROCESSING_NONEthe type of preprocessing: None- 另请参阅:
-
PREPROCESSING_CENTER
public static final int PREPROCESSING_CENTERthe type of preprocessing: Center- 另请参阅:
-
PREPROCESSING_STANDARDIZE
public static final int PREPROCESSING_STANDARDIZEthe type of preprocessing: Standardize- 另请参阅:
-
TAGS_PREPROCESSING
the types of preprocessing
-
-
构造器详细资料
-
PLSFilter
public PLSFilter()default constructor
-
-
方法详细资料
-
globalInfo
Returns a string describing this classifier.- 指定者:
globalInfo
在类中SimpleFilter
- 返回:
- 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
-
listOptions
Gets an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SimpleFilter
- 返回:
- an enumeration of all the available options.
-
getOptions
returns the options of the current setup- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SimpleFilter
- 返回:
- the current options
-
setOptions
Parses the options for this object. Valid options are:-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
在类中SimpleFilter
- 参数:
options
- the options to use- 抛出:
Exception
- if the option setting fails- 另请参阅:
-
SimpleFilter.reset()
-
numComponentsTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setNumComponents
public void setNumComponents(int value) sets the maximum number of attributes to use.- 参数:
value
- the maximum number of attributes
-
getNumComponents
public int getNumComponents()returns the maximum number of attributes to use.- 返回:
- the current maximum number of attributes
-
performPredictionTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setPerformPrediction
public void setPerformPrediction(boolean value) Sets whether to update the class attribute with the predicted value.- 参数:
value
- if true the class value will be replaced by the predicted value.
-
getPerformPrediction
public boolean getPerformPrediction()Gets whether the class attribute is updated with the predicted value.- 返回:
- true if the class attribute is updated
-
algorithmTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setAlgorithm
Sets the type of algorithm to use- 参数:
value
- the algorithm type
-
getAlgorithm
Gets the type of algorithm to use- 返回:
- the current algorithm type.
-
replaceMissingTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setReplaceMissing
public void setReplaceMissing(boolean value) Sets whether to replace missing values.- 参数:
value
- if true missing values are replaced with the ReplaceMissingValues filter.
-
getReplaceMissing
public boolean getReplaceMissing()Gets whether missing values are replace.- 返回:
- true if missing values are replaced with the ReplaceMissingValues filter
-
preprocessingTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setPreprocessing
Sets the type of preprocessing to use- 参数:
value
- the preprocessing type
-
getPreprocessing
Gets the type of preprocessing to use- 返回:
- the current preprocessing type.
-
getCapabilities
Returns the Capabilities of this filter.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Filter
- 返回:
- the capabilities of this object
- 另请参阅:
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Filter
- 返回:
- the revision
-
main
runs the filter with the given arguments.- 参数:
args
- the commandline arguments
-