jcolibri.method.maintenance
Class TwoStepCaseBaseEditMethod

java.lang.Object
  extended by jcolibri.method.maintenance.AbstractCaseBaseEditMethod
      extended by jcolibri.method.maintenance.TwoStepCaseBaseEditMethod
Direct Known Subclasses:
CRRFull, ICFFull, RCFull

public class TwoStepCaseBaseEditMethod
extends AbstractCaseBaseEditMethod

Provides the ability to run two case base editing algorithms consecutively on a set of cases. This is useful to run, for example, noise elimintaion prior to redundancy removal.

Author:
Lisa Cummins

Field Summary
protected  AbstractCaseBaseEditMethod method1
           
protected  AbstractCaseBaseEditMethod method2
           
 
Constructor Summary
TwoStepCaseBaseEditMethod(AbstractCaseBaseEditMethod method1, AbstractCaseBaseEditMethod method2)
          Sets up the edit method using the two provided methods.
 
Method Summary
 java.util.Collection<CBRCase> retrieveCasesToDelete(java.util.Collection<CBRCase> cases, KNNClassificationConfig simConfig)
          Runs alg1 followed by alg2 on the given cases and returns the cases deleted by the combined algorithms
 
Methods inherited from class jcolibri.method.maintenance.AbstractCaseBaseEditMethod
edit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method1

protected AbstractCaseBaseEditMethod method1

method2

protected AbstractCaseBaseEditMethod method2
Constructor Detail

TwoStepCaseBaseEditMethod

public TwoStepCaseBaseEditMethod(AbstractCaseBaseEditMethod method1,
                                 AbstractCaseBaseEditMethod method2)
Sets up the edit method using the two provided methods.

Parameters:
method1 - The first method to run.
method2 - The second method to run.
Method Detail

retrieveCasesToDelete

public java.util.Collection<CBRCase> retrieveCasesToDelete(java.util.Collection<CBRCase> cases,
                                                           KNNClassificationConfig simConfig)
Runs alg1 followed by alg2 on the given cases and returns the cases deleted by the combined algorithms

Specified by:
retrieveCasesToDelete in class AbstractCaseBaseEditMethod
Parameters:
cases - The group of cases on which to perform maintenance
simConfig - The KNNConfig for these cases
Returns:
the list of cases deleted by the algorithm

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