Class 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
    • 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​(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
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
    • Constructor Detail

      • Weka

        public Weka()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.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 class adams.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 class adams.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 class adams.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 class adams.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