T
- samples data typepublic class LeaveOneOutCrossValidation<T> extends java.lang.Object implements CrossValidation
Constructor and Description |
---|
LeaveOneOutCrossValidation(Classifier<T> cls,
java.util.List<TrainingSample<T>> l,
Evaluator<T> eval) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageScore()
Tells the average score of the test
|
double[] |
getScores()
Tells the scores of the tests, in order of evaluation
|
double |
getStdDevScore()
Tells the standard deviation of the test
|
void |
run()
perform learning and evaluations
|
public LeaveOneOutCrossValidation(Classifier<T> cls, java.util.List<TrainingSample<T>> l, Evaluator<T> eval)
public void run()
CrossValidation
run
in interface CrossValidation
public double getAverageScore()
CrossValidation
getAverageScore
in interface CrossValidation
public double getStdDevScore()
CrossValidation
getStdDevScore
in interface CrossValidation
public double[] getScores()
CrossValidation
getScores
in interface CrossValidation