Class ByName

    • Field Detail

      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression to use on the name.
    • Constructor Detail

      • ByName

        public ByName()
    • Method Detail

      • setRegExp

        public void setRegExp​(BaseRegExp value)
        Sets the index of the attribute to select.
        Parameters:
        value - the index
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression to use for locating the class attribute.
        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.
      • determineClassAttribute

        public int determineClassAttribute​(weka.core.Instances data)
        Determines the class attribute index for the given dataset.
        Specified by:
        determineClassAttribute in class AbstractClassAttributeHeuristic
        Parameters:
        data - the dataset to inspect
        Returns:
        the index, -1 if failed to determine