org.encog.ml.fitness
public class MultiObjectiveFitness extends Object implements CalculateScore, Serializable
| Constructor and Description |
|---|
MultiObjectiveFitness() |
| Modifier and Type | Method and Description |
|---|---|
void |
addObjective(double weight,
CalculateScore fitnessFunction)
Add an objective.
|
double |
calculateScore(MLMethod method)
Calculate this network's score.
|
boolean |
requireSingleThreaded() |
boolean |
shouldMinimize() |
public void addObjective(double weight,
CalculateScore fitnessFunction)
weight - The weight of this objective, 1.0 for full, 0.5 for half, etc.fitnessFunction - The fitness function.public double calculateScore(MLMethod method)
calculateScore in interface CalculateScoremethod - The ML method.public boolean shouldMinimize()
shouldMinimize in interface CalculateScorepublic boolean requireSingleThreaded()
requireSingleThreaded in interface CalculateScoreCopyright © 2014. All Rights Reserved.