org.encog.ml.ea.score.adjust
public class ComplexityAdjustedScore extends Object implements AdjustScore
Constructor and Description |
---|
ComplexityAdjustedScore() |
ComplexityAdjustedScore(int theComplexityPenaltyThreshold,
int theComplexityPentaltyFullThreshold,
double theComplexityPenalty,
double theComplexityFullPenalty)
Construct a adjustor to penalize complexity.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateAdjustment(Genome genome)
Calculate the score adjustment.
|
double |
getComplexityFullPenalty() |
double |
getComplexityPenalty() |
int |
getComplexityPenaltyThreshold() |
int |
getComplexityPentaltyFullThreshold() |
void |
setComplexityFullPenalty(double complexityFullPenalty) |
void |
setComplexityPenalty(double complexityPenalty) |
void |
setComplexityPenaltyThreshold(int complexityPenaltyThreshold) |
void |
setComplexityPentaltyFullThreshold(int complexityPentaltyFullThreshold) |
public ComplexityAdjustedScore(int theComplexityPenaltyThreshold, int theComplexityPentaltyFullThreshold, double theComplexityPenalty, double theComplexityFullPenalty)
theComplexityPenaltyThreshold
- The complexity level at which a penalty begins to be applied.theComplexityPentaltyFullThreshold
- The complexity level at which a full (100%) penalty is applied.theComplexityPenalty
- The starting complexity penalty.theComplexityFullPenalty
- The full complexity penalty.public ComplexityAdjustedScore()
public double calculateAdjustment(Genome genome)
calculateAdjustment
in interface AdjustScore
genome
- The genome.public double getComplexityPenalty()
public void setComplexityPenalty(double complexityPenalty)
complexityPenalty
- the complexityPenalty to setpublic double getComplexityFullPenalty()
public void setComplexityFullPenalty(double complexityFullPenalty)
complexityFullPenalty
- the complexityFullPenalty to setpublic int getComplexityPenaltyThreshold()
public void setComplexityPenaltyThreshold(int complexityPenaltyThreshold)
complexityPenaltyThreshold
- the complexityPenaltyThreshold to setpublic int getComplexityPentaltyFullThreshold()
public void setComplexityPentaltyFullThreshold(int complexityPentaltyFullThreshold)
complexityPentaltyFullThreshold
- the complexityPentaltyFullThreshold to setCopyright © 2014. All Rights Reserved.