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:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.QuickInfoSupporter
,adams.core.SizeOfHandler
,Serializable
public class Weka extends adams.data.featureconverter.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
-
-
Constructor Summary
Constructors Constructor Description Weka()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected weka.core.Instances
doGenerateHeader(adams.data.featureconverter.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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- 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 classadams.data.featureconverter.AbstractFeatureConverter<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 classadams.data.featureconverter.AbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
- Returns:
- the format
-
doGenerateHeader
protected weka.core.Instances doGenerateHeader(adams.data.featureconverter.HeaderDefinition header)
Performs the actual generation of a row from the raw data.- Specified by:
doGenerateHeader
in classadams.data.featureconverter.AbstractFeatureConverter<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 classadams.data.featureconverter.AbstractFeatureConverter<weka.core.Instances,weka.core.Instance>
- Parameters:
data
- the data of the row, elements can be null (= missing)- Returns:
- the dataset structure
-
-