public abstract class GeneticOptionsBase extends Object implements OptimizerOptions
Modifier and Type | Method and Description |
---|---|
Cancellation |
getCancellation()
Gets of sets the instance implementing
Cancellation , used for cancellation. |
double |
getCrossoverProbability()
The probability of parents being crossed.
|
InferenceFactory |
getInferenceFactory()
Used to create one or more inference engines, used by the algorithm to determine the fitness of possible solutions.
|
Integer |
getMaximumConcurrency()
Gets the maximum number of inference engines used during optimization.
|
double |
getMutationProbability()
The probability of genes being mutated.
|
int |
getPopulationSize()
Gets the number of chromosomes in each generation.
|
OptimizerProgress |
getProgress()
Gets of sets the instance implementing
OptimizerProgress , used for progress notifications. |
List<QueryDistribution> |
getQueryDistributions()
Determines which additional queries, if any, should be calculated by the inference engine when evaluating the fitness of a solution.
|
List<QueryFunctionOutput> |
getQueryFunctions()
Determines which additional functions, if any, should be calculated by the inference engine when evaluating the fitness of a solution.
|
Boolean |
getQueryLogLikelihood()
Determines whether the log-likelihood should be calculated by the inference engine when evaluating the fitness of a solution.
|
Integer |
getSeed()
The seed for the random number generator used by the Genetic Algorithm.
|
Stop |
getStopping()
Gets the instance implementing
Stop used for early stopping. |
GeneticTerminationOptions |
getTermination()
Termination options.
|
protected void |
raisePropertyChanged(String name) |
void |
setCancellation(Cancellation value)
Gets of sets the instance implementing
Cancellation , used for cancellation. |
void |
setCrossoverProbability(double value)
The probability of parents being crossed.
|
void |
setInferenceFactory(InferenceFactory value)
Used to create one or more inference engines, used by the algorithm to determine the fitness of possible solutions.
|
void |
setMaximumConcurrency(Integer value) |
void |
setMutationProbability(double value)
The probability of genes being mutated.
|
void |
setPopulationSize(int value)
Sets the number of chromosomes in each generation.
|
void |
setProgress(OptimizerProgress value)
Gets of sets the instance implementing
OptimizerProgress , used for progress notifications. |
void |
setQueryLogLikelihood(Boolean value)
Determines whether the log-likelihood should be calculated by the inference engine when evaluating the fitness of a solution.
|
void |
setSeed(Integer value)
The seed for the random number generator used by the Genetic Algorithm.
|
void |
setStopping(Stop value)
Sets the instance implementing
Stop used for early stopping. |
public GeneticTerminationOptions getTermination()
public double getCrossoverProbability()
public void setCrossoverProbability(double value)
public double getMutationProbability()
public void setMutationProbability(double value)
protected void raisePropertyChanged(String name)
public List<QueryDistribution> getQueryDistributions()
getQueryDistributions
in interface OptimizerOptions
public Integer getMaximumConcurrency()
Network
and also the evidence.getMaximumConcurrency
in interface OptimizerOptions
public void setMaximumConcurrency(Integer value)
public int getPopulationSize()
public void setPopulationSize(int value)
public Integer getSeed()
public void setSeed(Integer value)
public List<QueryFunctionOutput> getQueryFunctions()
getQueryFunctions
in interface OptimizerOptions
public InferenceFactory getInferenceFactory()
getInferenceFactory
in interface OptimizerOptions
public void setInferenceFactory(InferenceFactory value)
public Cancellation getCancellation()
Cancellation
, used for cancellation.getCancellation
in interface OptimizerOptions
Cancellation
public void setCancellation(Cancellation value)
Cancellation
, used for cancellation.setCancellation
in interface OptimizerOptions
Cancellation
public Stop getStopping()
Stop
used for early stopping.
Stopping is different to cancellation, as stopping will still return an objective value from the optimization process, albeit having performed fewer iterations.getStopping
in interface OptimizerOptions
public void setStopping(Stop value)
Stop
used for early stopping.
Stopping is different to cancellation, as stopping will still return an objective value from the optimization process, albeit having performed fewer iterations.setStopping
in interface OptimizerOptions
value
- The instance used for stopping.public Boolean getQueryLogLikelihood()
getQueryLogLikelihood
in interface OptimizerOptions
public void setQueryLogLikelihood(Boolean value)
setQueryLogLikelihood
in interface OptimizerOptions
public OptimizerProgress getProgress()
OptimizerProgress
, used for progress notifications.getProgress
in interface OptimizerOptions
OptimizerProgress
public void setProgress(OptimizerProgress value)
OptimizerProgress
, used for progress notifications.setProgress
in interface OptimizerOptions
OptimizerProgress
Copyright © 2021. All rights reserved.