Documentation of 'org.encog.ml.fitness.MultiObjectiveFitness' Java class
MultiObjectiveFitness
org.encog.ml.fitness

Class 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 Detail

      • MultiObjectiveFitness

        public MultiObjectiveFitness()
    • 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:
        calculateScore in interface CalculateScore
        Parameters:
        method - The ML method.
        Returns:
        The score.
      • shouldMinimize

        public boolean shouldMinimize()
        Specified by:
        shouldMinimize in interface CalculateScore
        Returns:
        True if the goal is to minimize the score.
      • requireSingleThreaded

        public boolean requireSingleThreaded()
        Specified by:
        requireSingleThreaded in interface CalculateScore
        Returns:
        True, if this score function cannot be done in parallel.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.