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 int
getAmount()
Gets amount.int
getElitism()
Gets elitism.double
getError()
Gets error.ToDoubleFunction<Network>
getFitnessFunction()
Gets fitness function.double
getGrowth()
Gets growth.int
getIterations()
Gets iterations.int
getLog()
Gets log.Loss
getLoss()
Gets loss.int
getMaxConnections()
Gets max connections.int
getMaxGates()
Gets max gates.int
getMaxNodes()
Gets max nodes.int
getMutationAmount()
Gets mutation amount.double
getMutationRate()
Gets mutation rate.Mutation[]
getMutations()
Get mutations.int
getPopulationSize()
Gets population size.Selection
getSelection()
Gets selection.Network
getTemplate()
Gets template.int
hashCode()
boolean
isClear()
Is clear.boolean
isEqual()
Is equal.EvolveOptions
setAmount(int amount)
Sets amount.EvolveOptions
setClear(boolean clear)
Sets clear.EvolveOptions
setElitism(int elitism)
Sets elitism.EvolveOptions
setEqual(boolean equal)
Sets equal.EvolveOptions
setError(double error)
Sets error.EvolveOptions
setFitnessFunction(ToDoubleFunction<Network> fitnessFunction)
Sets fitness function.EvolveOptions
setGrowth(double growth)
Sets growth.EvolveOptions
setIterations(int iterations)
Sets iterations.EvolveOptions
setLog(int log)
Sets log.EvolveOptions
setLoss(Loss loss)
Sets loss.EvolveOptions
setMaxConnections(int maxConnections)
Sets max connections.EvolveOptions
setMaxGates(int maxGates)
Sets max gates.EvolveOptions
setMaxNodes(int maxNodes)
Sets max nodes.EvolveOptions
setMutationAmount(int mutationAmount)
Sets mutation amount.EvolveOptions
setMutationRate(double mutationRate)
Sets mutation rate.EvolveOptions
setMutations(Mutation[] mutations)
Sets mutations.EvolveOptions
setPopulationSize(int populationSize)
Sets population size.EvolveOptions
setSelection(Selection selection)
Sets selection.EvolveOptions
setTemplate(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()
-