Package adams.data.conversion
Class MatchWekaInstanceAgainstFileHeader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.conversion.AbstractConversion
-
- adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
-
- adams.data.conversion.MatchWekaInstanceAgainstFileHeader
-
- All Implemented Interfaces:
AdditionalInformationHandler,CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,QuickInfoSupporter,ShallowCopySupporter<AbstractConversion>,SizeOfHandler,Stoppable,Conversion,Serializable
public class MatchWekaInstanceAgainstFileHeader extends AbstractMatchWekaInstanceAgainstHeader
Matches an Instance against a dataset header loaded from a file, i.e., it automatically converts STRING attributes into NOMINAL ones and vice versa.
The file can be any format that WEKA recognizes.
Valid options are:
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-header <adams.core.io.PlaceholderFile> (property: header) The file to load the header from. default: ${CWD}- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PlaceholderFilem_Headerthe header to load from disk.-
Fields inherited from class adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
m_Dataset
-
Fields inherited from class adams.data.conversion.AbstractConversion
m_Input, m_Output, m_Owner, m_Stopped
-
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 MatchWekaInstanceAgainstFileHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefineOptions()Adds options to the internal list of options.protected weka.core.InstancesgetDatasetHeader()Acquires the header.PlaceholderFilegetHeader()Returns the file to load the dataset header from.StringglobalInfo()Returns a string describing the object.StringheaderTipText()Returns the tip text for this property.voidsetHeader(PlaceholderFile value)Sets the file to load the dataset header from.-
Methods inherited from class adams.data.conversion.AbstractMatchWekaInstanceAgainstHeader
accepts, doConvert, generates, isCompatible, match, reset
-
Methods inherited from class adams.data.conversion.AbstractConversion
checkData, cleanUp, convert, getAdditionalInformation, getInput, getInput, getOutput, getOutput, getOwner, getQuickInfo, setInput, setOwner, shallowCopy, shallowCopy, stopExecution
-
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
-
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
-
-
-
-
Field Detail
-
m_Header
protected PlaceholderFile m_Header
the header to load from disk.
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setHeader
public void setHeader(PlaceholderFile value)
Sets the file to load the dataset header from.- Parameters:
value- the file
-
getHeader
public PlaceholderFile getHeader()
Returns the file to load the dataset header from.- Returns:
- the file
-
headerTipText
public String headerTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDatasetHeader
protected weka.core.Instances getDatasetHeader()
Acquires the header.- Specified by:
getDatasetHeaderin classAbstractMatchWekaInstanceAgainstHeader- Returns:
- the header to match against
-
-