Class AbstractClustererEvaluation

    • Constructor Detail

      • AbstractClustererEvaluation

        public AbstractClustererEvaluation()
    • Method Detail

      • canEvaluate

        public abstract String canEvaluate​(weka.clusterers.Clusterer clusterer)
        Tests whether the clusterer can be evaluated.
        Parameters:
        clusterer - the current clusterer
        Returns:
        null if successful, otherwise error message
      • init

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

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

        public void evaluate​(weka.clusterers.Clusterer clusterer,
                             ResultItem item)
                      throws Exception
        Evaluates the clusterer and updates the result item.
        Parameters:
        clusterer - the current clusterer
        item - the item to update
        Throws:
        Exception - if evaluation fails
      • getEvaluations

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