create_fit_func: Create a fitness function to estimate a program (R function)

Description Usage Arguments Value

View source: R/estimate_program.R

Description

Create a fitness function to estimate a program (R function)

Usage

1
create_fit_func(loss_function, X, y, parallel)

Arguments

loss_function

function resulting from a call to create_loss_func.

X

model.matrix

y

outcome

parallel

Optional Logical vector length one. Default is parallel = FALSE; parallel = TRUE can be slower if the data set is small relative to the numner of population evolutions desired

Value

Returns a function that takes in a function as an argument and then assigns it a numeric fitness value we want to minimize. Use this in estimate_program.


JohnNay/agp documentation built on May 7, 2019, noon