public class PLSFilter
extends weka.filters.SimpleBatchFilter
implements weka.filters.SupervisedFilter, weka.core.TechnicalInformationHandler
@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)
| Modifier and Type | Field and Description |
|---|---|
static int |
ALGORITHM_PLS1
the type of algorithm: PLS1
|
static int |
ALGORITHM_SIMPLS
the type of algorithm: SIMPLS
|
static int |
PREPROCESSING_CENTER
the type of preprocessing: Center
|
static int |
PREPROCESSING_NONE
the type of preprocessing: None
|
static int |
PREPROCESSING_STANDARDIZE
the type of preprocessing: Standardize
|
static weka.core.Tag[] |
TAGS_ALGORITHM
the types of algorithm
|
static weka.core.Tag[] |
TAGS_PREPROCESSING
the types of preprocessing
|
| Constructor and Description |
|---|
PLSFilter()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
algorithmTipText()
Returns the tip text for this property
|
weka.core.SelectedTag |
getAlgorithm()
Gets the type of algorithm to use
|
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
int |
getNumComponents()
returns the maximum number of attributes to use.
|
String[] |
getOptions()
returns the options of the current setup
|
boolean |
getPerformPrediction()
Gets whether the class attribute is updated with the predicted value.
|
weka.core.SelectedTag |
getPreprocessing()
Gets the type of preprocessing to use
|
boolean |
getReplaceMissing()
Gets whether missing values are replace.
|
String |
getRevision()
Returns the revision string.
|
weka.core.TechnicalInformation |
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.
|
String |
globalInfo()
Returns a string describing this classifier.
|
Enumeration<weka.core.Option> |
listOptions()
Gets an enumeration describing the available options.
|
static void |
main(String[] args)
runs the filter with the given arguments.
|
String |
numComponentsTipText()
Returns the tip text for this property
|
String |
performPredictionTipText()
Returns the tip text for this property
|
String |
preprocessingTipText()
Returns the tip text for this property
|
String |
replaceMissingTipText()
Returns the tip text for this property
|
void |
setAlgorithm(weka.core.SelectedTag value)
Sets the type of algorithm to use
|
void |
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(weka.core.SelectedTag value)
Sets the type of preprocessing to use
|
void |
setReplaceMissing(boolean value)
Sets whether to replace missing values.
|
allowAccessToFullInputFormat, batchFinished, inputbatchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapperpublic static final int ALGORITHM_SIMPLS
public static final int ALGORITHM_PLS1
public static final weka.core.Tag[] TAGS_ALGORITHM
public static final int PREPROCESSING_NONE
public static final int PREPROCESSING_CENTER
public static final int PREPROCESSING_STANDARDIZE
public static final weka.core.Tag[] TAGS_PREPROCESSING
public String globalInfo()
globalInfo in class weka.filters.SimpleFilterpublic weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface weka.core.TechnicalInformationHandlerpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.filters.Filterpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.filters.Filterpublic void setOptions(String[] options) throws Exception
-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 in interface weka.core.OptionHandlersetOptions in class weka.filters.Filteroptions - the options to useException - if the option setting failspublic String numComponentsTipText()
public void setNumComponents(int value)
value - the maximum number of attributespublic int getNumComponents()
public String performPredictionTipText()
public void setPerformPrediction(boolean value)
value - if true the class value will be replaced by the predicted
value.public boolean getPerformPrediction()
public String algorithmTipText()
public void setAlgorithm(weka.core.SelectedTag value)
value - the algorithm typepublic weka.core.SelectedTag getAlgorithm()
public String replaceMissingTipText()
public void setReplaceMissing(boolean value)
value - if true missing values are replaced with the
ReplaceMissingValues filter.public boolean getReplaceMissing()
public String preprocessingTipText()
public void setPreprocessing(weka.core.SelectedTag value)
value - the preprocessing typepublic weka.core.SelectedTag getPreprocessing()
public weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.filters.FilterCapabilitiespublic String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.filters.Filterpublic static void main(String[] args)
args - the commandline argumentsCopyright © 2018 University of Waikato, Hamilton, NZ. All Rights Reserved.