Class AbstractClassifierEvaluation

    • Constructor Detail

      • AbstractClassifierEvaluation

        public AbstractClassifierEvaluation()
    • Method Detail

      • canEvaluate

        public abstract String canEvaluate​(weka.classifiers.Classifier classifier)
        Tests whether the classifier can be evaluated.
        Returns:
        null if successful, otherwise error message
      • init

        public abstract ResultItem init​(weka.classifiers.Classifier classifier)
                                 throws Exception
        Initializes the result item.
        Parameters:
        classifier - the current classifier
        Returns:
        the initialized history item
        Throws:
        Exception - if initialization fails
      • doEvaluate

        protected abstract void doEvaluate​(weka.classifiers.Classifier classifier,
                                           ResultItem item)
                                    throws Exception
        Evaluates the classifier and updates the result item.
        Parameters:
        classifier - the current classifier
        item - the item to update
        Throws:
        Exception - if evaluation fails
      • evaluate

        public void evaluate​(weka.classifiers.Classifier classifier,
                             ResultItem item)
                      throws Exception
        Evaluates the classifier and updates the result item.
        Parameters:
        classifier - the current classifier
        item - the item to update
        Throws:
        Exception - if evaluation fails
      • fillWithAttributeNames

        protected void fillWithAttributeNames​(SelectOptionPanel select,
                                              int index)
        Fills the panel for selection options with the attributes from the specified data container.
        Parameters:
        select - the panel to fill
        index - the index, ignored if -1
      • transferAdditionalAttributes

        protected SpreadSheet transferAdditionalAttributes​(SelectOptionPanel select,
                                                           weka.core.Instances data)
        Transfers the additional attributes into a spreadsheet.
        Parameters:
        select - the selected attributes
        data - the data to transfer
        Returns:
        the spreadsheet
      • getEvaluations

        public static Class[] getEvaluations()
        Returns the available actions.
        Returns:
        the action classnames