Class Simple

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, Serializable

    public class Simple
    extends AbstractMerge
    Just merges the datasets side by side. Requires the datasets to have the same number of rows.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    -class-finder <> (property: classFinder)
        The column finder to use to find class attributes in the datasets.
    -dataset-names <adams.core.base.BaseString> [-dataset-names ...] (property: datasetNames)
        The list of dataset names to use in attribute renaming.
    -attr-renames-exp <adams.core.base.BaseRegExp> [-attr-renames-exp ...] (property: attributeRenamesExp)
        The expressions to use to select attribute names for renaming (one per dataset
    -attr-renames-format <adams.core.base.BaseString> [-attr-renames-format ...] (property: attributeRenamesFormat)
        One format string for each renaming expression to specify how to rename
        the attribute. Can contain the {DATASET} keyword which will be replaced
        by the dataset name, and also group identifiers which will be replaced by
        groups from the renaming regex.
    -output-name <java.lang.String> (property: outputName)
        The name to use for the merged dataset.
        default: output
    -ensure-equal-values <boolean> (property: ensureEqualValues)
        Whether multiple attributes being merged into a single attribute require
        equal values from all sources.
        default: false

    Performs a merge over a set of datasets of equal size by joining rows of equal index in a simple concatenation.

    Corey Sterling (csterlin at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • Simple

        public Simple()
    • Method Detail

      • check

        protected String check​(weka.core.Instances[] datasets)
        Hook method for performing checks before attempting the merge.
        check in class AbstractMerge
        datasets - the datasets to merge
        null if successfully checked, otherwise error message
      • getRowSetEnumeration

        protected Enumeration<int[]> getRowSetEnumeration()
        Allows specific merge methods to specify the order in which rows are placed into the merged dataset, and which rows from the source datasets are used for the source data.
        Specified by:
        getRowSetEnumeration in class AbstractMerge
        An enumeration of the source rows, one row for each dataset.