public class MaintenanceNFoldEvaluator extends MaintenanceEvaluator
app, editMethod, PERCENT_REDUCED, simConfig| Constructor and Description |
|---|
MaintenanceNFoldEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
protected ArrayList<ArrayList<CBRCase>> |
createFolds(Collection<CBRCase> cases,
int numFolds)
Divides the given cases into the given number of folds.
|
static void |
getFolds(int f,
List<CBRCase> querySet,
List<CBRCase> caseBaseSet,
ArrayList<ArrayList<CBRCase>> folds)
Clears the current query and case base sets and populates the query set with fold
f and the case base set with the cases not contained in fold f.
|
void |
NFoldEvaluation(int numFolds,
int repetitions)
Executes the N-Fold evaluation.
|
protected void |
prepareCases(Collection<CBRCase> originalCases,
List<CBRCase> querySet,
int fold,
CBRCaseBase caseBase,
ArrayList<ArrayList<CBRCase>> folds)
Prepares the cases for evaluation by setting up test and training sets
|
editCaseBase, init, init, setEditMethod, setSimConfiggetEvaluationReportpublic MaintenanceNFoldEvaluator()
public void NFoldEvaluation(int numFolds, int repetitions)
numFolds - the number of randomly generated folds.repetitions - the number of repetitionsprotected void prepareCases(Collection<CBRCase> originalCases, List<CBRCase> querySet, int fold, CBRCaseBase caseBase, ArrayList<ArrayList<CBRCase>> folds)
originalCases - Complete original set of casesquerySet - Where queries are to be storedfold - The fold numbercaseBase - The case baseprotected ArrayList<ArrayList<CBRCase>> createFolds(Collection<CBRCase> cases, int numFolds)
cases - the original cases.numFolds - the number of folds.public static void getFolds(int f, List<CBRCase> querySet, List<CBRCase> caseBaseSet, ArrayList<ArrayList<CBRCase>> folds)
f - the fold to use.querySet - the set of queries.caseBaseSet - the set of cases.Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.