View source: R/xegaEvalPopulation.R
xegaRepEvalPopulation | R Documentation |
xegaRepEvalPopulation()
evaluates a population
of genes in a problem environment lF$rep
times.
The results of repeatedly evaluating a gene are aggregated:
gene$fit
is the mean fitness,
gene$var
is the fitness variance,
gene$std
is the standard deviation of the fitness,
and
gene$obs
is the number of repetitions.
xegaRepEvalPopulation(pop, lF)
pop |
Population of genes. |
lF |
Local function configuration. |
Parallelization of the evaluation of fitness functions
is possible by defining lF$lapply
.
xegaRepEvalPopulation
is still experimental.
Known problems:
The apply loop must be order stable. This does not work e.g. for all local area network distribution versions.
Populations of function closures can not be evaluated.
List of
$pop
gene vector,
$fit
fitness vector,
$evalFail
number of failed evaluations.
Other Population Layer:
xegaBestGeneInPopulation()
,
xegaBestInPopulation()
,
xegaEvalPopulation()
,
xegaInitPopulation()
,
xegaLogEvalsPopulation()
,
xegaNextPopulation()
,
xegaObservePopulation()
,
xegaSummaryPopulation()
parm<-function(x){function() {return(x)}}
pop10<-xegaInitPopulation(10, lFxegaGaGene)
lFxegaGaGene[["lapply"]]<-ApplyFactory(method="Sequential")
lFxegaGaGene[["rep"]]<-parm(3)
result<-xegaRepEvalPopulation(pop10, lFxegaGaGene)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.