Skip to contents

This function is used in terga1 will create new combinations of features based of existing ones from the parents.

Usage

crossing(clf, pop, parents, seed = NULL)

Arguments

clf:

the classifier parameter object

pop:

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

parents:

Indexes of the population pointing to the subset of the population containing the parents (whose genes/features) will be used to create the children.

seed:

For reproductibility purpose to fix the random generator number.

Value

a population of models, containing parents and children