Class ClassifierHoldoutEvaluationTask<O>

  • Type Parameters:
    O - Object type

    public class ClassifierHoldoutEvaluationTask<O>
    extends AbstractApplication
    Evaluate a classifier.

    TODO: split into application and task.

    TODO: add support for predefined test and training pairs!

    Erich Schubert
    • Field Detail

      • LOG

        private static final Logging LOG
        Class logger.
      • databaseConnection

        protected DatabaseConnection databaseConnection
        Holds the database connection to get the initial data from.
      • indexFactories

        protected java.util.Collection<? extends IndexFactory<?>> indexFactories
        Indexes to add.
      • algorithm

        protected Classifier<O> algorithm
        Classifier to evaluate.
      • holdout

        protected Holdout holdout
        Holds the holdout.
    • Constructor Detail

      • ClassifierHoldoutEvaluationTask

        public ClassifierHoldoutEvaluationTask​(DatabaseConnection databaseConnection,
                                               java.util.Collection<? extends IndexFactory<?>> indexFactories,
                                               Classifier<O> algorithm,
                                               Holdout holdout)
        databaseConnection - Data source
        indexFactories - Data indexes
        algorithm - Classification algorithm
        holdout - Evaluation holdout
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Runs the classifier evaluation task accordingly to the specified parameters.
        args - parameter list according to description