Package adams.data.instancesanalysis.pls
Class AbstractMultiClassPLS
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.instancesanalysis.pls.AbstractPLS
-
- adams.data.instancesanalysis.pls.AbstractMultiClassPLS
-
- 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
- Direct Known Subclasses:
KernelPLS
public abstract class AbstractMultiClassPLS extends AbstractPLS
Ancestor for schemes that predict multiple classes.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected gnu.trove.list.TIntListm_ClassAttributeIndicesthe class attribute indices.protected adams.core.base.BaseRegExpm_ClassAttributesthe regular expression for identifying class attributes (besides an explicitly set one).protected Map<Integer,Double>m_ClassMeanthe class mean.protected Map<Integer,Double>m_ClassStdDevthe class stddev.protected weka.filters.Filterm_Filterfor centering the dataprotected weka.filters.Filterm_Missingfor replacing missing valuesstatic StringPARAM_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 AbstractMultiClassPLS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclassAttributesTipText()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.adams.core.base.BaseRegExpgetClassAttributes()Returns the regular expression for identifying the class attributes (besides an explicitly set one).protected adams.core.base.BaseRegExpgetDefaultClassAttributes()Returns the default regular expression for the class attributes.protected weka.core.InstancespostTransform(weka.core.Instances instances, Map<String,Object> params)Postprocesses the data.protected weka.core.InstancespreTransform(weka.core.Instances instances, Map<String,Object> params)Preprocesses the data.voidreset()Resets the scheme.voidsetClassAttributes(adams.core.base.BaseRegExp value)Sets the regular expression for identifying the class attributes (besides an explicitly set one).-
Methods inherited from class adams.data.instancesanalysis.pls.AbstractPLS
doTransform, getCapabilities, getDefaultPreprocessingType, getLoadings, getMatrix, getMatrixNames, getNumComponents, getOutputFormat, getPredictionType, getPreprocessingType, getReplaceMissing, getTechnicalInformation, hasLoadings, isInitialized, numComponentsTipText, predictionTypeTipText, preprocessingTypeTipText, replaceMissingTipText, setNumComponents, setPredictionType, setPreprocessingType, setReplaceMissing, transform
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
PARAM_CLASSVALUES
public static final String PARAM_CLASSVALUES
- See Also:
- Constant Field Values
-
m_ClassAttributes
protected adams.core.base.BaseRegExp m_ClassAttributes
the regular expression for identifying class attributes (besides an explicitly set one).
-
m_Missing
protected weka.filters.Filter m_Missing
for replacing missing values
-
m_Filter
protected weka.filters.Filter m_Filter
for centering the data
-
m_ClassAttributeIndices
protected gnu.trove.list.TIntList m_ClassAttributeIndices
the class attribute indices.
-
-
Method Detail
-
reset
public void reset()
Resets the scheme.- Overrides:
resetin classAbstractPLS
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classAbstractPLS
-
getDefaultClassAttributes
protected adams.core.base.BaseRegExp getDefaultClassAttributes()
Returns the default regular expression for the class attributes.- Returns:
- the default
-
setClassAttributes
public void setClassAttributes(adams.core.base.BaseRegExp value)
Sets the regular expression for identifying the class attributes (besides an explicitly set one).- Parameters:
value- the regular expression
-
getClassAttributes
public adams.core.base.BaseRegExp getClassAttributes()
Returns the regular expression for identifying the class attributes (besides an explicitly set one).- Returns:
- the regular expression
-
classAttributesTipText
public String classAttributesTipText()
Returns the tip text for this property- Returns:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
determineOutputFormat
public weka.core.Instances determineOutputFormat(weka.core.Instances input) throws ExceptionDetermines the output format based on the input format and returns this.- Specified by:
determineOutputFormatin classAbstractPLS- Parameters:
input- the input format to base the output format on- Returns:
- the output format
- Throws:
Exception- in case the determination goes wrong
-
preTransform
protected weka.core.Instances preTransform(weka.core.Instances instances, Map<String,Object> params) throws ExceptionPreprocesses the data.- Specified by:
preTransformin classAbstractPLS- Parameters:
instances- the data to processparams- additional parameters- Returns:
- the preprocessed data
- Throws:
Exception
-
postTransform
protected weka.core.Instances postTransform(weka.core.Instances instances, Map<String,Object> params) throws ExceptionPostprocesses the data.- Specified by:
postTransformin classAbstractPLS- Parameters:
instances- the data to processparams- additional parameters- Returns:
- the postprocessed data
- Throws:
Exception
-
-