View source: R/fitness_calculation.R
getObjective
returns a poolSize by 1 vector indicating the objective function value for each chromosome in the pool
1 | getObjective(X, y, pool, objectiveFunction, regressionType, nCores)
|
X |
design matrix, in a dataframe or matrix |
y |
a vector of responses |
pool |
a matrix of booleans representing the chromosome pools |
objectiveFunction |
accepts a function object to specify objective function. If provided by user, the function must be able to take glm object as input and return a numeric scalar. |
regressionType |
a character string defining the distribution family. |
nCores |
number of cores to use in evaluating the objective function value for each chromosome. If value is greater than 1, the evaluation is executed in parallel. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.