Skip to contents

This function is used in terga1 and is the main engine of the algorithm that allows to cross, mutate and select individuals from one generation to the next.

Usage

evolve(X, y, clf, pop, seed = NULL)

Arguments

X:

the data matrix with variables in the rows and observations in the columns

y:

the response vector

clf:

the classifier parameter object

pop:

A population (i.e. list) of index vectors

seed:

For reproductibility purpose to fix the random generator number.

Value

a population of models, containing parents and children