training: training

Description Usage Arguments Value

View source: R/utils.R

Description

This function fits the method on candidates and return the fitness value of the candidate

Usage

1
training(candidate, method_text, X, fitness_function_text, ...)

Arguments

candidate

(binary vector length c): on or off for each columns of X

X

(matrix n x (c+1)): data (n x c) and the last column is the value of y.

method:

method for fitting lm/glm

fitness_function_text:

type of function to evaluate fitness values

Value

fitness_value (float): fitness value of the model


jtkwar/GA documentation built on May 28, 2019, 7:36 a.m.