Package elki.application
Class ClassifierHoldoutEvaluationTask<O>
- java.lang.Object
-
- elki.application.AbstractApplication
-
- elki.application.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!
- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClassifierHoldoutEvaluationTask.Par<O>
Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description protected Classifier<O>
algorithm
Classifier to evaluate.protected DatabaseConnection
databaseConnection
Holds the database connection to get the initial data from.protected Holdout
holdout
Holds the holdout.protected java.util.Collection<? extends IndexFactory<?>>
indexFactories
Indexes to add.private static Logging
LOG
Class logger.-
Fields inherited from class elki.application.AbstractApplication
REFERENCE, VERSION
-
-
Constructor Summary
Constructors Constructor Description ClassifierHoldoutEvaluationTask(DatabaseConnection databaseConnection, java.util.Collection<? extends IndexFactory<?>> indexFactories, Classifier<O> algorithm, Holdout holdout)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Runs the classifier evaluation task accordingly to the specified parameters.void
run()
Runs the application.-
Methods inherited from class elki.application.AbstractApplication
printErrorMessage, runCLIApplication, usage
-
-
-
-
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)
Constructor.- Parameters:
databaseConnection
- Data sourceindexFactories
- Data indexesalgorithm
- Classification algorithmholdout
- Evaluation holdout
-
-
Method Detail
-
run
public void run()
Description copied from class:AbstractApplication
Runs the application.- Specified by:
run
in classAbstractApplication
-
main
public static void main(java.lang.String[] args)
Runs the classifier evaluation task accordingly to the specified parameters.- Parameters:
args
- parameter list according to description
-
-