Class AttributeIndex

    • Constructor Detail

      • AttributeIndex

        public AttributeIndex()
    • Method Detail

      • setIndex

        public void setIndex​(WekaAttributeIndex value)
        Sets the index of the attribute to select.
        Parameters:
        value - the index
      • getIndex

        public WekaAttributeIndex getIndex()
        Returns the index of the attribute to select.
        Returns:
        the index
      • indexTipText

        public String indexTipText()
        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