jcolibri.method.maintenance
Class TwoStepCaseBaseEditMethod
java.lang.Object
jcolibri.method.maintenance.AbstractCaseBaseEditMethod
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
method1
protected AbstractCaseBaseEditMethod method1
method2
protected AbstractCaseBaseEditMethod method2
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.
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 maintenancesimConfig
- The KNNConfig for these cases
- Returns:
- the list of cases deleted by the algorithm