|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcolibri.evaluation.Evaluator
jcolibri.extensions.maintenance_evaluation.MaintenanceEvaluator
public abstract class MaintenanceEvaluator
This abstract class defines the common behaviour of a maintenance evaluator.
Field Summary | |
---|---|
protected StandardCBRApplication |
app
|
protected AbstractCaseBaseEditMethod |
editMethod
|
static java.lang.String |
PERCENT_REDUCED
The label for the percentage reduction in the case-base after maintenance is performed. |
protected KNNClassificationConfig |
simConfig
|
Fields inherited from class jcolibri.evaluation.Evaluator |
---|
report |
Constructor Summary | |
---|---|
MaintenanceEvaluator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class jcolibri.evaluation.Evaluator |
---|
getEvaluationReport |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected StandardCBRApplication app
protected AbstractCaseBaseEditMethod editMethod
protected KNNClassificationConfig simConfig
public static final java.lang.String PERCENT_REDUCED
Constructor Detail |
---|
public MaintenanceEvaluator()
Method Detail |
---|
public void init(StandardCBRApplication cbrApp)
init
in class Evaluator
cbrApp
- the CBR application that this evaluator will use.StandardCBRApplication
public 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.
|
GAIA - Group for Artificial Intelligence Applications http://gaia.fdi.ucm.es |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |