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()
CrossValidationrun in interface CrossValidationpublic double getAverageScore()
CrossValidationgetAverageScore in interface CrossValidationpublic double getStdDevScore()
CrossValidationgetStdDevScore in interface CrossValidationpublic double[] getScores()
CrossValidationgetScores in interface CrossValidation