public class ExperimentUtils extends Object
| Constructor and Description |
|---|
ExperimentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Evaluator> |
nFoldCrossValidation(int nFold,
LearningAlgorithm algorithm,
SimpleDataset allData,
T evaluator)
Performs a n-fold cross validation
|
static List<Prediction> |
test(PredictionFunction predictionFunction,
Evaluator evaluator,
Dataset testset)
Evaluates a prediction function over a testset
|
public static List<Prediction> test(PredictionFunction predictionFunction, Evaluator evaluator, Dataset testset)
predictionFunction - the prediction function to be evaluatedevaluator - the evaluator to be applied during the evaluation processtestset - the dataset of containing the test examplespublic static <T extends Evaluator> List<T> nFoldCrossValidation(int nFold, LearningAlgorithm algorithm, SimpleDataset allData, T evaluator)
nFold - the number of foldsalgorithm - the learning algorithm to be validatedallData - the dataset to be exploitedevaluator - the evaluator to be applied during the evaluation processnFold evaluators, each one storing the evaluations
computed on the corresponding foldCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.