Class AbstractWekaEvaluationPostProcessor

    • Constructor Detail

      • AbstractWekaEvaluationPostProcessor

        public AbstractWekaEvaluationPostProcessor()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(WekaEvaluationContainer cont)
        Checks the container whether it can be processed.
        Default implementation only ensures that it is not null and predictions are present.
        Parameters:
        cont - the container to check
        Returns:
        null if successful, otherwise error message
      • newContainer

        protected WekaEvaluationContainer newContainer​(String suffix,
                                                       WekaEvaluationContainer cont,
                                                       gnu.trove.list.TIntList indices)
        Creates a new evaluation container from the specified subset of predictions.
        Parameters:
        suffix - the suffix for the relation name
        cont - the container to use as basis
        indices - the indices of the predictions to include in the container
        Returns:
        the new container
      • check

        protected String check​(weka.classifiers.Evaluation eval)
        Checks the evaluation whether it can be processed.
        Default implementation only ensures that it is not null and predictions are present.
        Parameters:
        eval - the evaluation to check
        Returns:
        null if successful, otherwise error message
      • newEvaluation

        protected weka.classifiers.Evaluation newEvaluation​(String suffix,
                                                            weka.classifiers.Evaluation eval,
                                                            gnu.trove.list.TIntList indices)
        Creates a new evaluation from the specified subset of predictions.
        Parameters:
        suffix - the suffix for the relation name
        eval - the Evaluation to use as basis
        indices - the indices of the predictions to include in the container
        Returns:
        the new container
      • doPostProcess

        protected abstract List<weka.classifiers.Evaluation> doPostProcess​(weka.classifiers.Evaluation eval)
        Post-processes the evaluation.
        Parameters:
        eval - the evaluation to post-process
        Returns:
        the generated evaluations
      • postProcess

        public List<weka.classifiers.Evaluation> postProcess​(weka.classifiers.Evaluation eval)
        Post-processes the evaluation.
        Parameters:
        eval - the evaluation to post-process
        Returns:
        the generated evaluations