Class EvolveOptions

java.lang.Object
com.github.raimannma.architecture.EvolveOptions

public class EvolveOptions
extends Object
The type Evolve options.
Author:
Manuel Raimann
  • Constructor Details

    • EvolveOptions

      public EvolveOptions()
      Instantiates a new Evolve options.
  • Method Details

    • getFitnessFunction

      public ToDoubleFunction<Network> getFitnessFunction()
      Gets fitness function.
      Returns:
      the fitness function
    • setFitnessFunction

      public EvolveOptions setFitnessFunction​(ToDoubleFunction<Network> fitnessFunction)
      Sets fitness function.
      Parameters:
      fitnessFunction - the fitness function
      Returns:
      itself to function as builder class
    • getPopulationSize

      public int getPopulationSize()
      Gets population size.
      Returns:
      the population size
    • setPopulationSize

      public EvolveOptions setPopulationSize​(int populationSize)
      Sets population size.
      Parameters:
      populationSize - the population size
      Returns:
      itself to function as builder class
    • getElitism

      public int getElitism()
      Gets elitism.
      Returns:
      the elitism
    • setElitism

      public EvolveOptions setElitism​(int elitism)
      Sets elitism.
      Parameters:
      elitism - the elitism
      Returns:
      itself to function as builder class
    • getMutationRate

      public double getMutationRate()
      Gets mutation rate.
      Returns:
      the mutation rate
    • setMutationRate

      public EvolveOptions setMutationRate​(double mutationRate)
      Sets mutation rate.
      Parameters:
      mutationRate - the mutation rate
      Returns:
      itself to function as builder class
    • getMutationAmount

      public int getMutationAmount()
      Gets mutation amount.
      Returns:
      the mutation amount
    • setMutationAmount

      public EvolveOptions setMutationAmount​(int mutationAmount)
      Sets mutation amount.
      Parameters:
      mutationAmount - the mutation amount
      Returns:
      itself to function as builder class
    • getSelection

      public Selection getSelection()
      Gets selection.
      Returns:
      the selection
    • setSelection

      public EvolveOptions setSelection​(Selection selection)
      Sets selection.
      Parameters:
      selection - the selection
      Returns:
      itself to function as builder class
    • getMutations

      public Mutation[] getMutations()
      Get mutations.
      Returns:
      the mutations
    • setMutations

      public EvolveOptions setMutations​(Mutation[] mutations)
      Sets mutations.
      Parameters:
      mutations - the mutations
      Returns:
      itself to function as builder class
    • getTemplate

      public Network getTemplate()
      Gets template.
      Returns:
      the template
    • setTemplate

      public EvolveOptions setTemplate​(Network template)
      Sets template.
      Parameters:
      template - the template
      Returns:
      itself to function as builder class
    • getMaxNodes

      public int getMaxNodes()
      Gets max nodes.
      Returns:
      the max nodes
    • setMaxNodes

      public EvolveOptions setMaxNodes​(int maxNodes)
      Sets max nodes.
      Parameters:
      maxNodes - the max nodes
      Returns:
      itself to function as builder class
    • getMaxConnections

      public int getMaxConnections()
      Gets max connections.
      Returns:
      the max connections
    • setMaxConnections

      public EvolveOptions setMaxConnections​(int maxConnections)
      Sets max connections.
      Parameters:
      maxConnections - the max connections
      Returns:
      itself to function as builder class
    • getMaxGates

      public int getMaxGates()
      Gets max gates.
      Returns:
      the max gates
    • setMaxGates

      public EvolveOptions setMaxGates​(int maxGates)
      Sets max gates.
      Parameters:
      maxGates - the max gates
      Returns:
      itself to function as builder class
    • isEqual

      public boolean isEqual()
      Is equal.
      Returns:
      the boolean
    • setEqual

      public EvolveOptions setEqual​(boolean equal)
      Sets equal.
      Parameters:
      equal - the equal
      Returns:
      itself to function as builder class
    • isClear

      public boolean isClear()
      Is clear.
      Returns:
      the boolean
    • setClear

      public EvolveOptions setClear​(boolean clear)
      Sets clear.
      Parameters:
      clear - the clear
      Returns:
      itself to function as builder class
    • getError

      public double getError()
      Gets error.
      Returns:
      the error
    • setError

      public EvolveOptions setError​(double error)
      Sets error.
      Parameters:
      error - the error
      Returns:
      itself to function as builder class
    • getGrowth

      public double getGrowth()
      Gets growth.
      Returns:
      the growth
    • setGrowth

      public EvolveOptions setGrowth​(double growth)
      Sets growth.
      Parameters:
      growth - the growth
      Returns:
      itself to function as builder class
    • getAmount

      public int getAmount()
      Gets amount.
      Returns:
      the amount
    • setAmount

      public EvolveOptions setAmount​(int amount)
      Sets amount.
      Parameters:
      amount - the amount
      Returns:
      itself to function as builder class
    • getLoss

      public Loss getLoss()
      Gets loss.
      Returns:
      the loss
    • setLoss

      public EvolveOptions setLoss​(Loss loss)
      Sets loss.
      Parameters:
      loss - the loss
      Returns:
      itself to function as builder class
    • getIterations

      public int getIterations()
      Gets iterations.
      Returns:
      the iterations
    • setIterations

      public EvolveOptions setIterations​(int iterations)
      Sets iterations.
      Parameters:
      iterations - the iterations
      Returns:
      itself to function as builder class
    • getLog

      public int getLog()
      Gets log.
      Returns:
      the log
    • setLog

      public EvolveOptions setLog​(int log)
      Sets log.
      Parameters:
      log - the log
      Returns:
      itself to function as builder class
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object