Class WekaAttributeSelectionContainer

  • All Implemented Interfaces:
    adams.core.CloneHandler<adams.flow.container.Container>, adams.core.GlobalInfoSupporter, adams.data.spreadsheet.SpreadSheetSupporter, adams.flow.container.Container, Serializable

    public class WekaAttributeSelectionContainer
    extends adams.flow.container.AbstractContainer
    A container for storing results from attribute selection.

    In case of performing cross-validation: seed and fold count get stored as well.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • WekaAttributeSelectionContainer

        public WekaAttributeSelectionContainer()
        Initializes the container.

        Only used for generating help information.
      • WekaAttributeSelectionContainer

        public WekaAttributeSelectionContainer​(weka.core.Instances train,
                                               weka.core.Instances reduced,
                                               weka.core.Instances transformed,
                                               weka.attributeSelection.AttributeSelection eval,
                                               adams.data.spreadsheet.SpreadSheet statistics,
                                               String range)
        Initializes the container.
        Parameters:
        train - the training set
        reduced - the reduced data
        transformed - the transformed data
        eval - the attribute selection evaluation object
        statistics - the spreadsheet with the statistics
        range - the range string of selected attributes
      • WekaAttributeSelectionContainer

        public WekaAttributeSelectionContainer​(weka.core.Instances train,
                                               weka.core.Instances reduced,
                                               weka.core.Instances transformed,
                                               weka.attributeSelection.AttributeSelection eval,
                                               Long seed,
                                               Integer foldCount)
        Initializes the container.
        Parameters:
        train - the training set
        reduced - the reduced data
        transformed - the transformed data
        eval - the attribute selection evaluation object
        seed - the seed value, can be null
        foldCount - the fold count
      • WekaAttributeSelectionContainer

        protected WekaAttributeSelectionContainer​(weka.core.Instances train,
                                                  weka.core.Instances reduced,
                                                  weka.core.Instances transformed,
                                                  weka.attributeSelection.AttributeSelection eval,
                                                  adams.data.spreadsheet.SpreadSheet statistics,
                                                  String range,
                                                  Long seed,
                                                  Integer foldCount)
        Initializes the container.
        Parameters:
        train - the training set
        reduced - the reduced data
        transformed - the transformed data
        eval - the attribute selection evaluation object
        statistics - the spreadsheet with the statistics
        range - the range string of selected attributes
        seed - the seed value, can be null
        foldCount - the fold count
    • Method Detail

      • initHelp

        protected void initHelp()
        Initializes the help strings.
        Overrides:
        initHelp in class adams.flow.container.AbstractContainer
      • names

        public Iterator<String> names()
        Returns all value names that can be used (theoretically).
        Specified by:
        names in interface adams.flow.container.Container
        Specified by:
        names in class adams.flow.container.AbstractContainer
        Returns:
        enumeration over all possible value names
      • isValid

        public boolean isValid()
        Checks whether the setup of the container is valid.
        Specified by:
        isValid in interface adams.flow.container.Container
        Specified by:
        isValid in class adams.flow.container.AbstractContainer
        Returns:
        true if all the necessary values are available