public abstract class MaintenanceEvaluator extends Evaluator
| Modifier and Type | Field and Description |
|---|---|
protected StandardCBRApplication |
app |
protected AbstractCaseBaseEditMethod |
editMethod |
static String |
PERCENT_REDUCED
The label for the percentage reduction in the case-base
after maintenance is performed.
|
protected KNNClassificationConfig |
simConfig |
| Constructor and Description |
|---|
MaintenanceEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
editCaseBase(CBRCaseBase caseBase)
Edit the case base and store the percentage reduction in the report.
|
void |
init(StandardCBRApplication cbrApp)
Initialise this evaluator with the CBR application to evaluate.
|
void |
init(StandardCBRApplication cbrApp,
AbstractCaseBaseEditMethod editMethod,
KNNClassificationConfig simConfig)
Initialise this evaluator with the CBR application to evaluate and the
edit method and similarity configuration to perform maintenance.
|
void |
setEditMethod(AbstractCaseBaseEditMethod editMethod)
Sets the edit method to be the given edit method.
|
void |
setSimConfig(KNNClassificationConfig simConfig)
Sets the similarity configuration to be the given similarity configuration.
|
getEvaluationReportprotected StandardCBRApplication app
protected AbstractCaseBaseEditMethod editMethod
protected KNNClassificationConfig simConfig
public static final String PERCENT_REDUCED
public MaintenanceEvaluator()
public void init(StandardCBRApplication cbrApp)
init in class EvaluatorcbrApp - the CBR application that this evaluator will use.StandardCBRApplicationpublic void init(StandardCBRApplication cbrApp, AbstractCaseBaseEditMethod editMethod, KNNClassificationConfig simConfig)
cbrApp - the CBR application that this evaluator will use.editMethod - the maintenance algorithm to use.simConfig - the similarity configuration to use.public void setEditMethod(AbstractCaseBaseEditMethod editMethod)
editMethod - the edit method to set.public void setSimConfig(KNNClassificationConfig simConfig)
simConfig - the similarity configuration to set.protected void editCaseBase(CBRCaseBase caseBase)
caseBase - the case base to be edited.Copyright © 2018 Group of Artificial Intelligence Applications (GAIA). All rights reserved.