getObjective: Computing Objective Function Values

Description Usage Arguments

View source: R/fitness_calculation.R

Description

getObjective returns a poolSize by 1 vector indicating the objective function value for each chromosome in the pool

Usage

1
getObjective(X, y, pool, objectiveFunction, regressionType, nCores)

Arguments

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.


garylin2099/GA documentation built on Feb. 8, 2020, 1:13 a.m.