public class HoldOutEvaluator extends Evaluator
| Modifier and Type | Field and Description |
|---|---|
protected StandardCBRApplication |
app |
| Constructor and Description |
|---|
HoldOutEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
HoldOut(int testPercent,
int repetitions)
Performs the Hold-Out evaluation.
|
void |
init(StandardCBRApplication cbrApp)
Initializes the evaluator with the CBR application to evaluate
|
protected void |
splitCaseBase(Collection<CBRCase> holeCaseBase,
List<CBRCase> querySet,
List<CBRCase> casebaseSet,
int testPercent)
Splits the case base in two sets: queries and case base
|
getEvaluationReportprotected StandardCBRApplication app
public HoldOutEvaluator()
public void init(StandardCBRApplication cbrApp)
Evaluatorinit in class EvaluatorStandardCBRApplicationpublic void HoldOut(int testPercent, int repetitions)
testPercent - Percent of the case base used as queries. The case base is splited randomly in each repetition.repetitions - Number of repetitions.protected void splitCaseBase(Collection<CBRCase> holeCaseBase, List<CBRCase> querySet, List<CBRCase> casebaseSet, int testPercent)
holeCaseBase - Complete original case basequerySet - Output param where queries are storedcasebaseSet - Output param where case base is storedtestPercent - Percentage of cases used as queriesCopyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.