jcolibri.extensions.maintenance_evaluation
Class MaintenanceEvaluator

java.lang.Object
  extended by jcolibri.evaluation.Evaluator
      extended by jcolibri.extensions.maintenance_evaluation.MaintenanceEvaluator
Direct Known Subclasses:
MaintenanceHoldOutEvaluator, MaintenanceLeaveOneOutEvaluator, MaintenanceNFoldEvaluator, MaintenanceSameSplitEvaluator

public abstract class MaintenanceEvaluator
extends Evaluator

This abstract class defines the common behaviour of a maintenance evaluator.

Author:
Lisa Cummins.

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

app

protected StandardCBRApplication app

editMethod

protected AbstractCaseBaseEditMethod editMethod

simConfig

protected KNNClassificationConfig simConfig

PERCENT_REDUCED

public static final java.lang.String PERCENT_REDUCED
The label for the percentage reduction in the case-base after maintenance is performed.

See Also:
Constant Field Values
Constructor Detail

MaintenanceEvaluator

public MaintenanceEvaluator()
Method Detail

init

public void init(StandardCBRApplication cbrApp)
Initialise this evaluator with the CBR application to evaluate.

Specified by:
init in class Evaluator
Parameters:
cbrApp - the CBR application that this evaluator will use.
See Also:
StandardCBRApplication

init

public 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.

Parameters:
cbrApp - the CBR application that this evaluator will use.
editMethod - the maintenance algorithm to use.
simConfig - the similarity configuration to use.

setEditMethod

public void setEditMethod(AbstractCaseBaseEditMethod editMethod)
Sets the edit method to be the given edit method.

Parameters:
editMethod - the edit method to set.

setSimConfig

public void setSimConfig(KNNClassificationConfig simConfig)
Sets the similarity configuration to be the given similarity configuration.

Parameters:
simConfig - the similarity configuration to set.

editCaseBase

protected void editCaseBase(CBRCaseBase caseBase)
Edit the case base and store the percentage reduction in the report.

Parameters:
caseBase - the case base to be edited.

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es