Class EvolveOptions
java.lang.Object
com.github.raimannma.architecture.EvolveOptions
public class EvolveOptions extends Object
The type Evolve options.
- Author:
- Manuel Raimann
-
Constructor Summary
Constructors Constructor Description EvolveOptions()Instantiates a new Evolve options. -
Method Summary
Modifier and Type Method Description intgetAmount()Gets amount.intgetElitism()Gets elitism.doublegetError()Gets error.ToDoubleFunction<Network>getFitnessFunction()Gets fitness function.doublegetGrowth()Gets growth.intgetIterations()Gets iterations.intgetLog()Gets log.LossgetLoss()Gets loss.intgetMaxConnections()Gets max connections.intgetMaxGates()Gets max gates.intgetMaxNodes()Gets max nodes.intgetMutationAmount()Gets mutation amount.doublegetMutationRate()Gets mutation rate.Mutation[]getMutations()Get mutations.intgetPopulationSize()Gets population size.SelectiongetSelection()Gets selection.NetworkgetTemplate()Gets template.inthashCode()booleanisClear()Is clear.booleanisEqual()Is equal.EvolveOptionssetAmount(int amount)Sets amount.EvolveOptionssetClear(boolean clear)Sets clear.EvolveOptionssetElitism(int elitism)Sets elitism.EvolveOptionssetEqual(boolean equal)Sets equal.EvolveOptionssetError(double error)Sets error.EvolveOptionssetFitnessFunction(ToDoubleFunction<Network> fitnessFunction)Sets fitness function.EvolveOptionssetGrowth(double growth)Sets growth.EvolveOptionssetIterations(int iterations)Sets iterations.EvolveOptionssetLog(int log)Sets log.EvolveOptionssetLoss(Loss loss)Sets loss.EvolveOptionssetMaxConnections(int maxConnections)Sets max connections.EvolveOptionssetMaxGates(int maxGates)Sets max gates.EvolveOptionssetMaxNodes(int maxNodes)Sets max nodes.EvolveOptionssetMutationAmount(int mutationAmount)Sets mutation amount.EvolveOptionssetMutationRate(double mutationRate)Sets mutation rate.EvolveOptionssetMutations(Mutation[] mutations)Sets mutations.EvolveOptionssetPopulationSize(int populationSize)Sets population size.EvolveOptionssetSelection(Selection selection)Sets selection.EvolveOptionssetTemplate(Network template)Sets template.
-
Constructor Details
-
EvolveOptions
public EvolveOptions()Instantiates a new Evolve options.
-
-
Method Details
-
getFitnessFunction
Gets fitness function.- Returns:
- the fitness function
-
setFitnessFunction
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
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
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
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
Sets mutation amount.- Parameters:
mutationAmount- the mutation amount- Returns:
- itself to function as builder class
-
getSelection
Gets selection.- Returns:
- the selection
-
setSelection
Sets selection.- Parameters:
selection- the selection- Returns:
- itself to function as builder class
-
getMutations
Get mutations.- Returns:
- the mutations
-
setMutations
Sets mutations.- Parameters:
mutations- the mutations- Returns:
- itself to function as builder class
-
getTemplate
Gets template.- Returns:
- the template
-
setTemplate
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
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
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
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
Sets equal.- Parameters:
equal- the equal- Returns:
- itself to function as builder class
-
isClear
public boolean isClear()Is clear.- Returns:
- the boolean
-
setClear
Sets clear.- Parameters:
clear- the clear- Returns:
- itself to function as builder class
-
getError
public double getError()Gets error.- Returns:
- the error
-
setError
Sets error.- Parameters:
error- the error- Returns:
- itself to function as builder class
-
getGrowth
public double getGrowth()Gets growth.- Returns:
- the growth
-
setGrowth
Sets growth.- Parameters:
growth- the growth- Returns:
- itself to function as builder class
-
getAmount
public int getAmount()Gets amount.- Returns:
- the amount
-
setAmount
Sets amount.- Parameters:
amount- the amount- Returns:
- itself to function as builder class
-
getLoss
Gets loss.- Returns:
- the loss
-
setLoss
Sets loss.- Parameters:
loss- the loss- Returns:
- itself to function as builder class
-
getIterations
public int getIterations()Gets iterations.- Returns:
- the iterations
-
setIterations
Sets iterations.- Parameters:
iterations- the iterations- Returns:
- itself to function as builder class
-
getLog
public int getLog()Gets log.- Returns:
- the log
-
setLog
Sets log.- Parameters:
log- the log- Returns:
- itself to function as builder class
-
hashCode
public int hashCode()
-