Package adams.data.instancesanalysis.pls
Class OPLS
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.instancesanalysis.pls.AbstractPLS
-
- adams.data.instancesanalysis.pls.AbstractSingleClassPLS
-
- adams.data.instancesanalysis.pls.OPLS
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.SizeOfHandler,adams.core.TechnicalInformationHandler,Serializable,weka.core.CapabilitiesHandler,GenericPLSMatrixAccess
public class OPLS extends AbstractSingleClassPLS
Orthogonal Projections to latent structures (O-PLS).
For more informatio see:
Johan Trygg, Svante Wold (2001). Orthogonal projections to latent structures (O-PLS). JOURNAL OF CHEMOMETRICS. 16:119-128. URL https://onlinelibrary.wiley.com/doi/pdf/10.1002/cem.695
@article{Trygg2001, author = {Johan Trygg and Svante Wold}, journal = {JOURNAL OF CHEMOMETRICS}, pages = {119-128}, title = {Orthogonal projections to latent structures (O-PLS)}, volume = {16}, year = {2001}, URL = {https://onlinelibrary.wiley.com/doi/pdf/10.1002/cem.695} }
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING min-user-mode: Expert
-preprocessing-type <NONE|CENTER|STANDARDIZE> (property: preprocessingType) The type of preprocessing to perform. default: CENTER
-replace-missing <boolean> (property: replaceMissing) Whether to replace missing values. default: false
-num-components <int> (property: numComponents) The number of components to compute. default: 20 minimum: 1
-prediction-type <NONE|ALL|EXCEPT_CLASS> (property: predictionType) The type of prediction to perform. default: NONE
-base <com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS> (property: base) The base PLS algorithm to use. default: com.github.waikatodatamining.matrix.algorithm.pls.PLS1 -debug false -num-components 5 -preprocessing-type NONE
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLSm_Basethe base PLS algorithm.protected com.github.waikatodatamining.matrix.algorithm.pls.OPLSm_OPLSthe actual algorithm.-
Fields inherited from class adams.data.instancesanalysis.pls.AbstractSingleClassPLS
m_ClassMean, m_ClassStdDev, m_Filter, m_Missing, PARAM_CLASSVALUES
-
Fields inherited from class adams.data.instancesanalysis.pls.AbstractPLS
m_Initialized, m_NumComponents, m_OutputFormat, m_PredictionType, m_PreprocessingType, m_ReplaceMissing
-
-
Constructor Summary
Constructors Constructor Description OPLS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbaseTipText()Returns the tip text for this propertyvoiddefineOptions()Adds options to the internal list of options.weka.core.InstancesdetermineOutputFormat(weka.core.Instances input)Determines the output format based on the input format and returns this.protected weka.core.InstancesdoTransform(weka.core.Instances data, Map<String,Object> params)Transforms the data, initializes if necessary.com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLSgetBase()Sets the base PLS algorithm to use.weka.core.matrix.MatrixgetLoadings()Returns the loadings, if available.weka.core.matrix.MatrixgetMatrix(String name)Returns the matrix with the specified name.String[]getMatrixNames()Returns the all the available matrices.adams.core.TechnicalInformationgetTechnicalInformation()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.StringglobalInfo()Returns a string describing the object.booleanhasLoadings()Whether the algorithm supports return of loadings.voidsetBase(com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS value)Sets the base PLS algorithm to use.-
Methods inherited from class adams.data.instancesanalysis.pls.AbstractSingleClassPLS
postTransform, preTransform, reset
-
Methods inherited from class adams.data.instancesanalysis.pls.AbstractPLS
getCapabilities, getDefaultPreprocessingType, getNumComponents, getOutputFormat, getPredictionType, getPreprocessingType, getReplaceMissing, isInitialized, numComponentsTipText, predictionTypeTipText, preprocessingTypeTipText, replaceMissingTipText, setNumComponents, setPredictionType, setPreprocessingType, setReplaceMissing, transform
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getTechnicalInformation
public adams.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.- Specified by:
getTechnicalInformationin interfaceadams.core.TechnicalInformationHandler- Specified by:
getTechnicalInformationin classAbstractPLS- Returns:
- the technical information about this class
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classAbstractPLS
-
setBase
public void setBase(com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS value)
Sets the base PLS algorithm to use.- Parameters:
value- the base algorithm
-
getBase
public com.github.waikatodatamining.matrix.algorithm.pls.AbstractPLS getBase()
Sets the base PLS algorithm to use.- Returns:
- the base algorithm
-
baseTipText
public String baseTipText()
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getMatrixNames
public String[] getMatrixNames()
Returns the all the available matrices.- Specified by:
getMatrixNamesin interfaceGenericPLSMatrixAccess- Specified by:
getMatrixNamesin classAbstractPLS- Returns:
- the names of the matrices
-
getMatrix
public weka.core.matrix.Matrix getMatrix(String name)
Returns the matrix with the specified name.- Specified by:
getMatrixin interfaceGenericPLSMatrixAccess- Specified by:
getMatrixin classAbstractPLS- Parameters:
name- the name of the matrix- Returns:
- the matrix, null if not available
-
hasLoadings
public boolean hasLoadings()
Whether the algorithm supports return of loadings.- Specified by:
hasLoadingsin interfaceGenericPLSMatrixAccess- Specified by:
hasLoadingsin classAbstractPLS- Returns:
- true if supported
- See Also:
getLoadings()
-
getLoadings
public weka.core.matrix.Matrix getLoadings()
Returns the loadings, if available.- Specified by:
getLoadingsin interfaceGenericPLSMatrixAccess- Specified by:
getLoadingsin classAbstractPLS- Returns:
- the loadings, null if not available
-
determineOutputFormat
public weka.core.Instances determineOutputFormat(weka.core.Instances input) throws ExceptionDetermines the output format based on the input format and returns this.- Overrides:
determineOutputFormatin classAbstractSingleClassPLS- Parameters:
input- the input format to base the output format on- Returns:
- the output format
- Throws:
Exception- in case the determination goes wrong
-
doTransform
protected weka.core.Instances doTransform(weka.core.Instances data, Map<String,Object> params) throws ExceptionTransforms the data, initializes if necessary.- Specified by:
doTransformin classAbstractPLS- Parameters:
data- the data to useparams- additional parameters- Returns:
- the transformed data
- Throws:
Exception
-
-