Package adams.core.discovery.genetic
Class SIMPLSWeightsMatrix
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<AbstractDiscoveryHandler>,SizeOfHandler,Serializable
public class SIMPLSWeightsMatrix extends AbstractGeneticDoubleMatrixDiscoveryHandler
SIMPLS pls internal weights handler.- Version:
- $Revision$
- Author:
- Dale (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.core.discovery.genetic.AbstractGeneticDoubleMatrixDiscoveryHandler
m_Columns, m_Maximum, m_Minimum, m_Rows, m_Splits
-
Fields inherited from class adams.core.discovery.AbstractDiscoveryHandler
m_Containers, m_InvertMatching, m_RegExp
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description SIMPLSWeightsMatrix()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetDefaultColumns()The number of PLS componentsprotected doublegetDefaultMaximum()Returns the default maximum.protected doublegetDefaultMinimum()Returns the default minimum.protected intgetDefaultRows()This is the number of attributesprotected intgetDefaultSplits()Returns the default splits.protected weka.core.matrix.MatrixgetValue(PropertyPath.PropertyContainer cont)Returns the matrix value from the property container.StringglobalInfo()Returns a string describing the object.protected booleanhandles(Object obj)Checks whether this object is handled by this discovery handler.voidperformInitialization(AbstractGeneticAlgorithm owner, PropertyPath.PropertyContainer cont)Gets called for performing the initialization.booleanrequiresInitialization()Returns whether the handler requires an initialization.protected voidsetValue(PropertyPath.PropertyContainer cont, weka.core.matrix.Matrix value)Sets the integer value in the property container.-
Methods inherited from class adams.core.discovery.genetic.AbstractGeneticDoubleMatrixDiscoveryHandler
calcNumBits, columnsTipText, defineOptions, doPack, doUnpack, getColumns, getMaximum, getMinimum, getNumBits, getRows, getSplits, maximumTipText, minimumTipText, rowsTipText, setColumns, setMaximum, setMinimum, setRows, setSplits, splitsTipText
-
Methods inherited from class adams.core.discovery.genetic.AbstractGeneticDiscoveryHandler
pack, unpack
-
Methods inherited from class adams.core.discovery.AbstractDiscoveryHandler
addContainer, getContainers, getInvertMatching, getRegExp, handles, invertMatchingTipText, regExpTipText, reset, setInvertMatching, setRegExp, shallowCopy, shallowCopy, toString
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getDefaultSplits
protected int getDefaultSplits()
Description copied from class:AbstractGeneticDoubleMatrixDiscoveryHandlerReturns the default splits.- Specified by:
getDefaultSplitsin classAbstractGeneticDoubleMatrixDiscoveryHandler- Returns:
- the default
-
getDefaultRows
protected int getDefaultRows()
This is the number of attributes- Specified by:
getDefaultRowsin classAbstractGeneticDoubleMatrixDiscoveryHandler- Returns:
-
getDefaultColumns
protected int getDefaultColumns()
The number of PLS components- Specified by:
getDefaultColumnsin classAbstractGeneticDoubleMatrixDiscoveryHandler- Returns:
-
getDefaultMinimum
protected double getDefaultMinimum()
Returns the default minimum.- Specified by:
getDefaultMinimumin classAbstractGeneticDoubleMatrixDiscoveryHandler- Returns:
- the default
-
getDefaultMaximum
protected double getDefaultMaximum()
Returns the default maximum.- Specified by:
getDefaultMaximumin classAbstractGeneticDoubleMatrixDiscoveryHandler- Returns:
- the default
-
getValue
protected weka.core.matrix.Matrix getValue(PropertyPath.PropertyContainer cont)
Returns the matrix value from the property container.- Specified by:
getValuein classAbstractGeneticDoubleMatrixDiscoveryHandler- Parameters:
cont- the container- Returns:
- the value
-
setValue
protected void setValue(PropertyPath.PropertyContainer cont, weka.core.matrix.Matrix value)
Sets the integer value in the property container.- Specified by:
setValuein classAbstractGeneticDoubleMatrixDiscoveryHandler- Parameters:
cont- the containervalue- the value to set
-
requiresInitialization
public boolean requiresInitialization()
Returns whether the handler requires an initialization.
Default implementation returns false.- Overrides:
requiresInitializationin classAbstractGeneticDiscoveryHandler- Returns:
- true if necessary
-
performInitialization
public void performInitialization(AbstractGeneticAlgorithm owner, PropertyPath.PropertyContainer cont)
Gets called for performing the initialization.
Apply simpls PLS filter and extract- Overrides:
performInitializationin classAbstractGeneticDiscoveryHandler- Parameters:
owner- the owning algorithmcont- the property container to update
-
handles
protected boolean handles(Object obj)
Checks whether this object is handled by this discovery handler.- Specified by:
handlesin classAbstractDiscoveryHandler- Parameters:
obj- the object to check- Returns:
- true if handled
-
-