|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.fitness.MultiObjectiveFitness
public class MultiObjectiveFitness
A multi-objective fitness function.
| Constructor Summary | |
|---|---|
MultiObjectiveFitness()
|
|
| Method Summary | |
|---|---|
void |
addObjective(double weight,
CalculateScore fitnessFunction)
Add an objective. |
double |
calculateScore(MLMethod method)
Calculate this network's score. |
boolean |
requireSingleThreaded()
|
boolean |
shouldMinimize()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiObjectiveFitness()
| Method Detail |
|---|
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 CalculateScore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||