Package adams.data.featureconverter
Class Weka
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.featureconverter.AbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
-
- adams.data.featureconverter.Weka
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,SizeOfHandler
,Serializable
public class Weka extends AbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
Generates features in spreadsheet format.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.featureconverter.AbstractFeatureConverter
m_Dataset, m_Header, m_HeaderDefinition
-
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 Weka()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected weka.core.Instances
doGenerateHeader(HeaderDefinition header)
Performs the actual generation of a row from the raw data.protected weka.core.Instance
doGenerateRow(List<Object> data)
Performs the actual generation of a row from the raw data.Class
getDatasetFormat()
Returns the class of the dataset that the converter generates.Class
getRowFormat()
Returns the class of the row that the converter generates.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.data.featureconverter.AbstractFeatureConverter
datasetTipText, defineOptions, generateHeader, generateRow, getDataset, getHeader, getHeaderDefinition, getQuickInfo, isInitialized, reset, setDataset
-
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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getDatasetFormat
public Class getDatasetFormat()
Returns the class of the dataset that the converter generates.- Specified by:
getDatasetFormat
in classAbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
- Returns:
- the format
-
getRowFormat
public Class getRowFormat()
Returns the class of the row that the converter generates.- Specified by:
getRowFormat
in classAbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
- Returns:
- the format
-
doGenerateHeader
protected weka.core.Instances doGenerateHeader(HeaderDefinition header)
Performs the actual generation of a row from the raw data.- Specified by:
doGenerateHeader
in classAbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
- Parameters:
data
- the data of the row, elements can be null (= missing)- Returns:
- the dataset structure
-
doGenerateRow
protected weka.core.Instance doGenerateRow(List<Object> data)
Performs the actual generation of a row from the raw data.- Specified by:
doGenerateRow
in classAbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
- Parameters:
data
- the data of the row, elements can be null (= missing)- Returns:
- the dataset structure
-
-