public class ConfigurationFitness extends TreeFitnessAbstract
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationFitness.ConfigurationFitnessGUI
GUI class that provides a GUI interface (for the ProM Wizard) to this
fitness evaluator.
|
TreeFitnessAbstract.TreeFitnessGUISettingsAbstract<F extends TreeFitnessAbstract>, TreeFitnessAbstract.TreeFitnessGUISettingsEmpty<F extends TreeFitnessAbstract>
Modifier and Type | Field and Description |
---|---|
static TreeFitnessInfo |
info |
Constructor and Description |
---|
ConfigurationFitness(CentralRegistryConfigurable registry,
double alpha,
boolean absolute,
TreeFitnessAbstract... logFitness)
Constructor for the configuration fitness evaluator.
|
ConfigurationFitness(ConfigurationFitness original) |
Modifier and Type | Method and Description |
---|---|
double |
countAllConfigSettings(NAryTree tree) |
static double |
countConfiguredColums(NAryTree tree,
boolean absoluteCount) |
static double |
countUselessConfigSettings(NAryTree tree) |
double |
getAlpha() |
double |
getConfigFitness(NAryTree tree) |
double |
getFitness(NAryTree candidate,
java.util.List<? extends NAryTree> population)
Calculates a fitness score for the given candidate.
|
TreeFitnessAbstract[] |
getFitnessList() |
TreeFitnessInfo |
getInfo()
Returns the STATIC info for the metric instance
|
void |
setAlpha(double alpha) |
deepClone, deepClone, getGUISettingsPanel, instantiateTreeFitness, isNatural
public static final TreeFitnessInfo info
public ConfigurationFitness(ConfigurationFitness original)
public ConfigurationFitness(CentralRegistryConfigurable registry, double alpha, boolean absolute, TreeFitnessAbstract... logFitness)
registry
- The central registry containing information about the event
logs etc.alpha
- How to weigh the configuration quality against the average
overall fitness. Fitness will be alpha*configQ + (1-alpha)
avg(Of)absolute
- If TRUE then an absolute configuration fitness is provided, if
FALSE a normalized value between 0 and 1 is producedlogFitness
- List of overall fitness evaluators, one for each log in the
registrypublic double getFitness(NAryTree candidate, java.util.List<? extends NAryTree> population)
FitnessEvaluator
FitnessEvaluator.isNatural()
). This method must always
return a value greater than or equal to zero. Framework behaviour is
undefined for negative fitness scores.candidate
- The candidate solution to calculate fitness for.population
- The entire population. This will include the specified
candidate. This is provided for fitness evaluators that
evaluate individuals in the context of the population that
they are part of (e.g. a program that evolves game-playing
strategies may wish to play each strategy against each of the
others). This parameter can be ignored by simple fitness
evaluators. When iterating over the population, a simple
reference equality check (==) can be used to identify which
member of the population is the specified candidate.public double getConfigFitness(NAryTree tree)
public static double countConfiguredColums(NAryTree tree, boolean absoluteCount)
public double countAllConfigSettings(NAryTree tree)
public static double countUselessConfigSettings(NAryTree tree)
public TreeFitnessInfo getInfo()
TreeFitnessAbstract
getInfo
in class TreeFitnessAbstract
public TreeFitnessAbstract[] getFitnessList()
public double getAlpha()
public void setAlpha(double alpha)
alpha
- the alpha to set