public class PseudoFMeasureFitnessFunction extends IGPFitnessFunction
| Modifier and Type | Field and Description |
|---|---|
ExecutionEngine |
engine |
| Modifier and Type | Method and Description |
|---|---|
void |
addToReference(AMapping m) |
AMapping |
calculateMapping(org.jgap.gp.IGPProgram p) |
Double |
calculatePseudoMeasure(org.jgap.gp.IGPProgram p) |
double |
calculateRawFitness(org.jgap.gp.IGPProgram p)
Determine fitness of the individual p;
|
double |
calculateRawMeasure(org.jgap.gp.IGPProgram p) |
void |
destroy()
Needed between several runs
|
protected double |
evaluate(org.jgap.gp.IGPProgram program) |
void |
fillCachesIncrementally(AMapping matches) |
double |
getBeta() |
static PseudoFMeasureFitnessFunction |
getInstance(LinkSpecGeneticLearnerConfig a_config,
PseudoFMeasure pfm,
ACache c1,
ACache c2)
Singleton pattern
|
AMapping |
getMapping(ACache sC,
ACache tC,
LinkSpecification spec)
Get or create a mapping from a link specification (Metric String + Acceptance threshold: 0<=threshold<=1).
|
PseudoFMeasure |
getMeasure() |
void |
setBeta(double beta) |
void |
setMeasure(PseudoFMeasure pfm) |
public ExecutionEngine engine
public static PseudoFMeasureFitnessFunction getInstance(LinkSpecGeneticLearnerConfig a_config, PseudoFMeasure pfm, ACache c1, ACache c2)
a_config - LinkSpecGeneticLearnerConfigpfm - PseudoFMeasurec1 - Cachec2 - Cacheprotected double evaluate(org.jgap.gp.IGPProgram program)
evaluate in class org.jgap.gp.GPFitnessFunctionpublic double calculateRawFitness(org.jgap.gp.IGPProgram p)
p - GP programspublic AMapping calculateMapping(org.jgap.gp.IGPProgram p)
public Double calculatePseudoMeasure(org.jgap.gp.IGPProgram p)
p - GP programspublic AMapping getMapping(ACache sC, ACache tC, LinkSpecification spec)
spec - the link specificationpublic void destroy()
public PseudoFMeasure getMeasure()
public void setMeasure(PseudoFMeasure pfm)
public double getBeta()
public void setBeta(double beta)
public double calculateRawMeasure(org.jgap.gp.IGPProgram p)
public void addToReference(AMapping m)
addToReference in class IGPFitnessFunctionpublic void fillCachesIncrementally(AMapping matches)
fillCachesIncrementally in class IGPFitnessFunctionCopyright © 2018. All rights reserved.