S
- type of observationsT
- type of categoriespublic abstract class ClassificationTester<S extends Observation,T extends Category>
extends java.lang.Object
Constructor and Description |
---|
ClassificationTester() |
Modifier and Type | Method and Description |
---|---|
double |
test(Classifier classifier,
TrainingSet<S,T> trainingSet)
Measures the performance of the given classifier on the given test set, i.e.
|
abstract double |
test(Trainer<S,T> trainer,
TrainingSet<S,T> trainingSet)
This methods takes a trainer and a training set and returns the performance
(in [0,1]) of the trained classifier on the training set (e.g.
|
public abstract double test(Trainer<S,T> trainer, TrainingSet<S,T> trainingSet)
trainer
- some trainertrainingSet
- some training setpublic double test(Classifier classifier, TrainingSet<S,T> trainingSet)
classifier
- some classifier.trainingSet
- some training set.