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.
        value - the index
      • getRegExp

        public BaseRegExp getRegExp()
        Returns the regular expression to use for locating the class attribute.
        the expression
      • regExpTipText

        public String regExpTipText()
        Returns the tip text for this property.
        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
        data - the dataset to inspect
        the index, -1 if failed to determine