Class CrossValidator<S extends Observation,T extends Category>

java.lang.Object
org.tweetyproject.machinelearning.ClassificationTester<S,T>
org.tweetyproject.machinelearning.CrossValidator<S,T>
Type Parameters:
S - the type of observation
T - the type of category

public class CrossValidator<S extends Observation,T extends Category> extends ClassificationTester<S,T>
Performs cross-validation in a classifier, i.e. it divides a given training set into N parts (more precisely, for each category present in the training set, the observations belonging each category are partitioned into N parts), for each i=1,...,N trains a classifier on the union of all parts except i, and measures the performance on part i. The final performance measure is the average on these N rounds.
Author:
Matthias Thimm