Class GroupedCrossValidation

    • Field Detail

      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression for the nominal/string attribute.
      • m_Group

        protected String m_Group
        the group expression.
      • m_UseOnlyName

        protected boolean m_UseOnlyName
        whether to only use the name, not the path inthe grouping.
      • m_RemoveExtension

        protected boolean m_RemoveExtension
        whether to remove the extension.
    • Constructor Detail

      • GroupedCrossValidation

        public GroupedCrossValidation()
    • Method Detail

      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the regular expression for identifying the group (eg '^(.*)-([0-9]+)-(.*)$').
        Parameters:
        value - the expression
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression for identifying the group (eg '^(.*)-([0-9]+)-(.*)$').
        Returns:
        the expression
      • regExpTipText

        public String regExpTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setGroup

        public void setGroup​(String value)
        Sets the replacement string to use as group (eg '$2').
        Parameters:
        value - the group
      • getGroup

        public String getGroup()
        Returns the replacement string to use as group (eg '$2').
        Returns:
        the group
      • groupTipText

        public String groupTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUseOnlyName

        public void setUseOnlyName​(boolean value)
        Sets whether to use only the file name, not the path, in the grouping.
        Parameters:
        value - true if to use only the name
      • getUseOnlyName

        public boolean getUseOnlyName()
        Returns whether to use only the file name, not the path, in the grouping..
        Returns:
        true if to use only the name
      • useOnlyNameTipText

        public String useOnlyNameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setRemoveExtension

        public void setRemoveExtension​(boolean value)
        Sets whether to remove the extension from the filename before applying the regular expression.
        Parameters:
        value - true if to remove the extension
      • getRemoveExtension

        public boolean getRemoveExtension()
        Returns whether to remove the extension from the filename before applying the regular expression.
        Returns:
        true if to remove the extension
      • removeExtensionTipText

        public String removeExtensionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • accepts

        public Class accepts()
        Returns the class that the preparation scheme accepts as input.
        Overrides:
        accepts in class CrossValidation
        Returns:
        the class
      • check

        protected String check​(String[] data)
        Hook method for checking the data.
        Overrides:
        check in class CrossValidation
        Parameters:
        data - the data to check
        Returns:
        null if succesful, otherwise error message