org.encog.ml.fitness
Class MultiObjectiveFitness
- java.lang.Object
-
- org.encog.ml.fitness.MultiObjectiveFitness
-
- All Implemented Interfaces:
- java.io.Serializable, CalculateScore
public class MultiObjectiveFitness extends java.lang.Object implements CalculateScore, java.io.Serializable
A multi-objective fitness function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MultiObjectiveFitness()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddObjective(double weight, CalculateScore fitnessFunction)Add an objective.doublecalculateScore(MLMethod method)Calculate this network's score.booleanrequireSingleThreaded()booleanshouldMinimize()
-
-
-
Method Detail
-
addObjective
public void addObjective(double weight, CalculateScore fitnessFunction)Add an objective.- Parameters:
weight- The weight of this objective, 1.0 for full, 0.5 for half, etc.fitnessFunction- The fitness function.
-
calculateScore
public double calculateScore(MLMethod method)
Calculate this network's score.- Specified by:
calculateScorein interfaceCalculateScore- Parameters:
method- The ML method.- Returns:
- The score.
-
shouldMinimize
public boolean shouldMinimize()
- Specified by:
shouldMinimizein interfaceCalculateScore- Returns:
- True if the goal is to minimize the score.
-
requireSingleThreaded
public boolean requireSingleThreaded()
- Specified by:
requireSingleThreadedin interfaceCalculateScore- Returns:
- True, if this score function cannot be done in parallel.
-
-
DMelt 3.0 © DataMelt by jWork.ORG