public class WilsonReduction extends java.lang.Object implements Reduction
This class implements the reduction Interface. It codifies an strict version of the wilson reduction proposed in Wilson 2002.
Constructor and Description |
---|
WilsonReduction()
Creates one WilsonReduction Object.
|
Modifier and Type | Method and Description |
---|---|
Population |
makeReduction(Population pop,
Environment reductionEnv)
Compacts the ruleSet of the population.
|
public Population makeReduction(Population pop, Environment reductionEnv)
Compacts the ruleSet of the population. Before doing that, it writes all the classifiers in a file. Then it compacts the classifiers following the method described in Wilson's 2002 article. After all, it writes the new ruleset into a file, with the same name and .cmp (compacted) extension. It does not destroy the environment. It does modify the population (it returns the population sorted).
makeReduction
in interface Reduction
pop
- is the population that has to be reduced.
reductionEnv
- is the environment that will be used to get the performance
of classifiers.